]> git.ipfire.org Git - thirdparty/gcc.git/commit
call.c (add_candidates): Distinguish between type(x) and x.operator type().
authorJason Merrill <jason@redhat.com>
Wed, 12 May 2010 17:34:28 +0000 (13:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 12 May 2010 17:34:28 +0000 (13:34 -0400)
commit404f08f8d52a28a0590e858c339c68ca7f78ccfd
tree6f028aa195e1257bca4a73bcbc7579f2af2613ab
parent5c824000a5b855d454483bee7d32850f161ecdab
call.c (add_candidates): Distinguish between type(x) and x.operator type().

* call.c (add_candidates): Distinguish between type(x) and
x.operator type().
(convert_class_to_reference): Set LOOKUP_NO_CONVERSION.
(build_new_method_call): Give better error for conversion op.

From-SVN: r159333
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/op1.C
gcc/testsuite/g++.dg/template/conv11.C [new file with mode: 0644]