[clang] No longer add enumeration constants to the wrong scope (PR #134998)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 9 11:49:20 PDT 2025


================
@@ -151,3 +151,21 @@ class C {
                         // expected-error {{unexpected ';' before ')'}}
 };
 }
+
+#if __cplusplus >= 201103L
+namespace GH23317 {
+struct A {
----------------
AaronBallman wrote:

Yup, that still compiles without diagnosing.

https://github.com/llvm/llvm-project/pull/134998


More information about the cfe-commits mailing list