================ @@ -1970,6 +2024,13 @@ Sema::ConditionResult Parser::ParseCXXCondition(StmtResult *InitStmt, DeclSpec DS(AttrFactory); ParseSpecifierQualifierList(DS, AS_none, DeclSpecContext::DSC_condition); + // The Declarator's DeclarationAttrs only accepts [[]] and keyword attributes; + // move any GNU attributes onto the DeclSpec instead. + if (!getLangOpts().CPlusPlus) ---------------- AaronBallman wrote:
This seems pretty suspicious to me, can you explain why it's needed a bit more? CC @erichkeane https://github.com/llvm/llvm-project/pull/198244 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
