]> granicus.if.org Git - clang/commit
Don't perform ADL when looking up operator=; there is no non-member form of
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 23 Sep 2014 20:31:39 +0000 (20:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 23 Sep 2014 20:31:39 +0000 (20:31 +0000)
commit805726b5386d79ec387312afb6489739697eeb57
treee1387cc6f0aac05029c5eee23b42bb44b97f8be0
parentf867c44a02ea000621af47a520bd6502772d186d
Don't perform ADL when looking up operator=; there is no non-member form of
that function, and apart from being slow, this is unnecessary: ADL can trigger
instantiations that are not permitted here. The standard isn't *completely*
clear here, but this seems like the intent, and in any case this approach is
permitted by [temp.inst]p7.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218330 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/CXX/drs/dr2xx.cpp
test/SemaCXX/overloaded-operator.cpp