------- Comment #2 from dodji at gcc dot gnu dot org 2009-12-23 00:31 ------- Subject: Bug 42260
Author: dodji Date: Wed Dec 23 00:31:33 2009 New Revision: 155415 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155415 Log: 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. Added: trunk/gcc/testsuite/g++.dg/conversion/cast2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/cvt.c trunk/gcc/cp/search.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42260