OSDN Git Service

Fix PR c++/42260
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Dec 2009 00:31:33 +0000 (00:31 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Dec 2009 00:31:33 +0000 (00:31 +0000)
commit8972df285867666549ef0b398eedc52b26ad0d73
treebf27e39059a5d3b482c3c5aaacaccd3688912360
parentef3e8648e0662529e33e22ea7c03fbe93eecbffb
Fix PR c++/42260

gcc/cp/ChangeLog:
PR c++/42260
* cp-tree.h (lookup_conversions): Add new bool parameter to
declaration.
* search.c (lookup_conversion): Use new bool parameter in
definition.
* call.c (add_builtin_candidates): Don't lookup template conversion
(convert_class_to_reference, build_user_type_conversion_1,
 build_op_call): Adjust.
* cvt.c (build_expr_type_conversion): Likewise

gcc/testsuite/ChangeLog:
PR c++/42260
* conversion/cast2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155415 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/cast2.C [new file with mode: 0644]