We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c91ee6 commit 3f8d7e0Copy full SHA for 3f8d7e0
clang/lib/Parse/ParseExprCXX.cpp
@@ -539,10 +539,8 @@ bool Parser::ParseOptionalCXXScopeSpecifier(
539
// anyway. C++20 requires this, and in prior language modes it improves
540
// error recovery. But before we commit to this, check that we actually
541
// have something that looks like a template-argument-list next.
542
- if (!IsTypename &&
543
- (TNK == TNK_Undeclared_template ||
544
- (!HasScopeSpecifier && ObjectType)) &&
545
- isTemplateArgumentList(1) == TPResult::False)
+ if (!IsTypename && (ObjectType || TNK == TNK_Undeclared_template) &&
+ isTemplateArgumentList(1) == TPResult::False)
546
break;
547
548
// We have found a template name, so annotate this token
0 commit comments