[all-commits] [llvm/llvm-project] 848934: [c++20] Fix handling of unqualified lookups from a...
Richard Smith via All-commits
all-commits at lists.llvm.org
Mon Dec 9 17:49:37 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 848934c67d484da737b4b92c087bffce069b24ba
https://github.com/llvm/llvm-project/commit/848934c67d484da737b4b92c087bffce069b24ba
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2019-12-09 (Mon, 09 Dec 2019)
Changed paths:
M clang/include/clang/AST/Decl.h
M clang/include/clang/AST/DeclBase.h
M clang/include/clang/AST/UnresolvedSet.h
M clang/include/clang/Sema/Sema.h
M clang/include/clang/Sema/Template.h
M clang/lib/AST/Decl.cpp
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/lib/Sema/SemaLambda.cpp
M clang/lib/Sema/SemaTemplateInstantiate.cpp
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
M clang/lib/Serialization/ASTReaderDecl.cpp
M clang/lib/Serialization/ASTWriterDecl.cpp
M clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
A clang/test/PCH/cxx2a-defaulted-comparison.cpp
Log Message:
-----------
[c++20] Fix handling of unqualified lookups from a defaulted comparison
function.
We need to perform unqualified lookups from the context of a defaulted
comparison, but not until we implicitly define the function, at which
point we can't do those lookups any more. So perform the lookup from the
end of the class containing the =default declaration and store the
lookup results on the defaulted function until we synthesize the body.
More information about the All-commits
mailing list