]> granicus.if.org Git - clang/commit
When producing overload candidates for binary built-in operators, keep
authorDouglas Gregor <dgregor@apple.com>
Wed, 3 Nov 2010 17:00:07 +0000 (17:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 3 Nov 2010 17:00:07 +0000 (17:00 +0000)
commitfec56e7e341cd1d9a861d64bffc80a97aed89802
tree221f47b6793561e9b13e05fcf43069f159c0e805
parente0d987626cc11317b36d6d3cc148c9a9d4b35850
When producing overload candidates for binary built-in operators, keep
the sets of available conversions for the first and second arguments
separate. This is apparently the indent of C++ [over.built], and
reduces the number of overload candidates generated, eliminating some
ambiguities. Fixes PR8477.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118178 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCXX/overloaded-builtin-operators.cpp