Skip to content

[HLSL] Hitting assert in initializer list code #173076

@spall

Description

@spall

Hitting an assert in the initializer list code when compiling this program:

export void fn(int A) {
 int Foo[] = {};
}

https://godbolt.org/z/oed1YjYcj

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    Status

    Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions