@@ -174,8 +174,7 @@ TemplateNameKind Sema::isTemplateName(Scope *S,
174174 ParsedType ObjectTypePtr,
175175 bool EnteringContext,
176176 TemplateTy &TemplateResult,
177- bool &MemberOfUnknownSpecialization,
178- bool Disambiguation) {
177+ bool &MemberOfUnknownSpecialization) {
179178 assert (getLangOpts ().CPlusPlus && " No template names in C!" );
180179
181180 DeclarationName TName;
@@ -205,7 +204,7 @@ TemplateNameKind Sema::isTemplateName(Scope *S,
205204 LookupResult R (*this , TName, Name.getBeginLoc (), LookupOrdinaryName);
206205 if (LookupTemplateName (R, S, SS, ObjectType, EnteringContext,
207206 MemberOfUnknownSpecialization, SourceLocation (),
208- &AssumedTemplate, Disambiguation ))
207+ &AssumedTemplate))
209208 return TNK_Non_template;
210209
211210 if (AssumedTemplate != AssumedTemplateKind::None) {
@@ -372,8 +371,7 @@ bool Sema::LookupTemplateName(LookupResult &Found,
372371 bool EnteringContext,
373372 bool &MemberOfUnknownSpecialization,
374373 SourceLocation TemplateKWLoc,
375- AssumedTemplateKind *ATK,
376- bool Disambiguation) {
374+ AssumedTemplateKind *ATK) {
377375 if (ATK)
378376 *ATK = AssumedTemplateKind::None;
379377
@@ -496,9 +494,8 @@ bool Sema::LookupTemplateName(LookupResult &Found,
496494 }
497495 }
498496
499- if (Found.empty () && !IsDependent && !Disambiguation) {
500- // If we did not find any names, and this is not a disambiguation, attempt
501- // to correct any typos.
497+ if (Found.empty () && !IsDependent) {
498+ // If we did not find any names, attempt to correct any typos.
502499 DeclarationName Name = Found.getLookupName ();
503500 Found.clear ();
504501 // Simple filter callback that, for keywords, only accepts the C++ *_cast
0 commit comments