Skip to content

[SPIR-V] Unhandled Exception "Name is not a simple identifier" and others, but only when running in debugger #6973

Closed

Description

Description

I was making a shader with the EXE/godbolt of the compiler, but now when I compile at runtime I get unhandled exception after unhandled exception

Steps to Reproduce

This godbolt: https://godbolt.org/z/WMsK7sP3d

Actual Behavior

Can't run with the debugger attached

Environment

  • DXC version: trunk as of 17/10/24
  • Host Operating System Godbolt

Activity

  1. added
    bug
    needs-triage
    spirv
    on Oct 17, 2024
  2. devshgraphicsprogramming commented on Oct 18, 2024

    @devshgraphicsprogramming
    Author

    The whole bug seems to be caused by me defining void WhittedTask::operator()() outside the struct

    Might also affect DXIL/non-spirv output

  3. s-perron commented on Nov 18, 2024

    @s-perron
    Collaborator

    I'm able to reproduce when using a debug build of the compiler. I reduced the test to:

    struct WhittedTask
    {
        void operator()();
    };
    
    void WhittedTask::operator()()
    {
    }
    
    [numthreads(8,8,1)]
    void main(uint32_t3 gl_GlobalInvocationID : SV_DispatchThreadID)
    {
    }
    
  4. added a commit that references this issue on Nov 18, 2024
    ba91667
  5. moved this from For Google to Triaged in HLSL Triageon Nov 18, 2024
  6. added a commit that references this issue on Nov 20, 2024
    e824ae3
  7. added a commit that references this issue on Jul 24, 2025
    2be6b4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triagespirv

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions