RESOLVED INVALID 189755
[WHLSL] Enum types with no zero value can’t be zero-initialized
https://bugs.webkit.org/show_bug.cgi?id=189755
Summary [WHLSL] Enum types with no zero value can’t be zero-initialized
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.