================ @@ -3035,11 +3035,14 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration( } ParsedAttributes DeclSpecAttrs(AttrFactory); - MaybeParseMicrosoftAttributes(DeclSpecAttrs); - // Hold late-parsed attributes so we can attach a Decl to them later. LateParsedAttrList CommonLateParsedAttrs; + while (MaybeParseCXX11Attributes(DeclAttrs) || ---------------- DenisGZM wrote:
Yes, you right. But simply remove this line now will break diagnostics In C23 investigations, I also found another differences that might be a bug. https://godbolt.org/z/E8Pc1zYK6 In `clang/lib/Parse/Parser.cpp:757` we parse all attributes and thus we accept `[[]]` attribute after `__attribute__` which isn't right for variable declarations in C23, I guess. https://github.com/llvm/llvm-project/pull/133107 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits