You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.cpp2: error: a type's implementation may not declare a name that is the same as (i.e., shadows) a type scope name - for example, a type scope function's local variable may not have the same as one of the type's members
's' is not mentioned among the illegal member names for an enumeration.
The text was updated successfully, but these errors were encountered:
Describe the bug
When declaring an enumeration, a member called 's' cannot be declared.
To Reproduce
https://cpp2.godbolt.org/z/eExnreoaT
foo : @enum type = { s; }
gives the following error:
's' is not mentioned among the illegal member names for an enumeration.
The text was updated successfully, but these errors were encountered: