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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 9 09:01:03 PDT 2025


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

Is this still going to work for:

```
struct A {
enum E : int;
enum E : int {ae1, ae2};

constexpr int foo() const;
};
```

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


More information about the cfe-commits mailing list