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 3a906a9 commit de51559Copy full SHA for de51559
clang/lib/Parse/ParseTemplate.cpp
@@ -712,8 +712,11 @@ bool Parser::TryAnnotateTypeConstraint() {
712
MemberOfUnknownSpecialization);
713
assert(!MemberOfUnknownSpecialization
714
&& "Member when we only allowed namespace scope qualifiers??");
715
- if (!PossibleConcept || TNK != TNK_Concept_template)
+ if (!PossibleConcept || TNK != TNK_Concept_template) {
716
+ if (SS.isNotEmpty())
717
+ AnnotateScopeToken(SS, !WasScopeAnnotation);
718
return false;
719
+ }
720
721
// At this point we're sure we're dealing with a constrained parameter. It
722
// may or may not have a template parameter list following the concept
0 commit comments