This is an archive of the discontinued LLVM Phabricator instance.

[clang-repl] Consider the scope spec in template lookups for deduction guides
ClosedPublic

Authored by v.g.vassilev on Mar 31 2023, 5:15 AM.

Details

Summary

isDeductionGuideName looks up the underlying template and if the template name is qualified we miss that qualification resulting in an error. This issue resurfaced in clang-repl where we call isDeductionGuideName more often to distinguish between if we had a statement or declaration.

This patch passes the CXXScopeSpec information down to LookupTemplateName to make the lookup more precise.

Diff Detail

Event Timeline

v.g.vassilev created this revision.Mar 31 2023, 5:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2023, 5:15 AM
v.g.vassilev requested review of this revision.Mar 31 2023, 5:15 AM

clang-format

Let's rely on a post-commit review here.

This revision was not accepted when it landed; it landed in state Needs Review.May 8 2023, 10:55 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 10:55 AM

Thanks! That was blocking our jupyter integration so I decided to go ahead here since we already missed the clang17 train...