[clang] fix issue 73559. (PR #74926)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 11 11:01:45 PST 2023
================
@@ -2702,7 +2702,7 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS,
bool MalformedTypeSpec = false;
if (!TemplateInfo.Kind &&
Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) {
- if (TryAnnotateCXXScopeToken())
+ if (getLangOpts().CPlusPlus && TryAnnotateCXXScopeToken())
----------------
ChipsSpectre wrote:
ok, it will be changed into an assert.
The assert is not triggered by the *::* test, which will be added to the cxx-in-c.c test.
https://github.com/llvm/llvm-project/pull/74926
More information about the cfe-commits
mailing list