[all-commits] [llvm/llvm-project] 2c4620: [clang-repl] Consider the scope spec in template l...
Vassil Vassilev via All-commits
all-commits at lists.llvm.org
Mon May 8 10:55:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2c4620c1dadc032f968ce0aa835a441f268a8cdb
https://github.com/llvm/llvm-project/commit/2c4620c1dadc032f968ce0aa835a441f268a8cdb
Author: Vassil Vassilev <v.g.vassilev at gmail.com>
Date: 2023-05-08 (Mon, 08 May 2023)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/Parse/ParseDecl.cpp
M clang/lib/Parse/ParseExprCXX.cpp
M clang/lib/Parse/ParseTentative.cpp
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/Interpreter/disambiguate-decl-stmt.cpp
Log Message:
-----------
[clang-repl] Consider the scope spec in template lookups for deduction guides.
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.
Differential revision: https://reviews.llvm.org/D147319
More information about the All-commits
mailing list