================
@@ -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:

Looking at the comment it seems to me that we assumed there are errors 
diagnosed before this skipping.

Can we check that in the if condition? i.e. we only bail out if we can ensure.


https://github.com/llvm/llvm-project/pull/187580
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to