Bug 189755

Summary: [WHLSL] Enum types with no zero value can’t be zero-initialized
Product: WebKit Reporter: Thomas Denney <tdenney>
Component: WebGPUAssignee: Thomas Denney <tdenney>
Status: RESOLVED INVALID    
Severity: Normal CC: dino, jonlee, mmaxfield
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 189202    

Thomas Denney
Reported 2018-09-19 10:22:16 PDT
See EnumType.populateDefaultValue. Consider the enum type enum A { B = 1, C = 2 } Currently an A value will be initialized with zero, which isn’t a valid value of the enum. We need to specify this behavior, update the interpreter, and update the compiler.
Attachments
Thomas Denney
Comment 1 2018-09-20 17:12:23 PDT
Closing this because Checker verifies that an enum cannot be declared without a zero value.
Myles C. Maxfield
Comment 2 2018-10-13 15:00:37 PDT
Note You need to log in before you can comment on or make changes to this bug.