]> granicus.if.org Git - clang/commit
Fix two-phase name lookup for non-dependent overloaded operators.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Oct 2017 19:35:51 +0000 (19:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Oct 2017 19:35:51 +0000 (19:35 +0000)
commit6ddf39e8aa2de6022b62828f6ada82b8981e896c
tree2df0fa7b2d52ecdb41fb9ed75cdba288addddcb0
parent435d6c49f016d836c6b7c077bfaec8355b83055b
Fix two-phase name lookup for non-dependent overloaded operators.

If we resolve an overloaded operator call to a specific function during
template definition, don't perform ADL during template instantiation.
Doing so finds overloads that we're not supposed to find.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315005 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaOverload.cpp
lib/Sema/TreeTransform.h
test/SemaCXX/overloaded-operator.cpp