Skip to content

[HLSL] List Init expects an intializer for unnamed bitfield #157922

@spall

Description

@spall
struct EmptyStruct {
    int : 10;
};

[numthreads(1,1,1)]
void main() {
  EmptyStruct A = {1}; // to demonstrate you aren't supposed to initialize
  EmptyStruct E = {}; // bug here (this should be accepted but currently generates an error)
}

https://godbolt.org/z/fWG14TbsW

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions