re PR c++/35773 (auto_ptr references don't convert)
authorJason Merrill <jason@redhat.com>
Thu, 17 Apr 2008 14:01:26 +0000 (10:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 17 Apr 2008 14:01:26 +0000 (10:01 -0400)
commit46225e2688bbe10bee867517803ad860b371e0e5
tree0f3beacf2dcdb116cafffbd9623593aacb453e4c
parentec2e9a15a83b3633f4d27bfc5f226a31eedbbf41
re PR c++/35773 (auto_ptr references don't convert)

        PR c++/35773
        * cp/call.c (build_user_type_conversion_1): Represent second step of
        copy-init with an rvalue conversion.
        (convert_like_real) [ck_user]: Don't implicitly add it here.
        * g++.dg/overload/autoptr1.C: New.

From-SVN: r134398
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/autoptr1.C [new file with mode: 0644]