[clang] [Clang][Parser] Report error when attribute missing ]] followed by ;; (PR #187580)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 20 03:58:25 PDT 2026


================
@@ -4681,13 +4681,6 @@ void Parser::ParseCXX11AttributeSpecifierInternal(ParsedAttributes &Attrs,
       Diag(Tok, diag::err_cxx11_attribute_forbids_ellipsis) << AttrName;
   }
 
-  // If we hit an error and recovered by parsing up to a semicolon, eat the
-  // semicolon and don't issue further diagnostics about missing brackets.
----------------
zyn0217 wrote:

Or maybe we don't have to return on line 4688, can you please try?

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


More information about the cfe-commits mailing list