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
No longer add enumeration constants to the wrong scope
Previously, the enumerators were being added both to the class context
and to the namespace scope. e.g., we accepted this invalid code:
struct A {
enum E : int;
};
enum A::E : int { e1 = 100, e2 };
int func() {
return e1; // Was accepted, now correctly rejected
}
Fixesllvm#23317
0 commit comments