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
P2115R0 gave unnamed enumerations that don't already have a typedef name for linkage purposes the name of their first enumerator for linkage purposes. From https://eel.is/c++draft/dcl.enum#12:
An unnamed enumeration that does not have a typedef name for linkage purposes ([dcl.typedef]) and that has a first enumerator is denoted, for linkage purposes ([basic.link]), by its underlying type and its first enumerator; such an enumeration is said to have an enumerator as a name for linkage purposes.
To mangle both the underlying type and the name of an enum requires a new production. To be able to continue to differentiate an unnamed enum, I propose something like the following (in a similar manner to closure type productions):