[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:49:46 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:
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
More information about the cfe-commits
mailing list