[clang] [Clang] Properly parse enumeration declarations with fixed underlying type in generic associations (PR #210353)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 4 09:05:38 PDT 2026


================
@@ -1529,8 +1536,20 @@ Parser::isCXXDeclarationSpecifier(ImplicitTypenameContext AllowImplicitTypename,
     //     enum E : int { a = 4 }; // enum
     //     enum E : int { 4 };     // bit-field
     //   };
-    if (getLangOpts().CPlusPlus11 && NextToken().is(tok::l_brace))
+    if (getLangOpts().CPlusPlus11 && NextToken().is(tok::l_brace)) {
----------------
AaronBallman wrote:

Is there a test case covering these changes?

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


More information about the cfe-commits mailing list