PR c++/35782, c++/37860
authorJason Merrill <jason@redhat.com>
Tue, 2 Dec 2008 23:52:02 +0000 (18:52 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Dec 2008 23:52:02 +0000 (18:52 -0500)
commit3f6079ddc5aae102d082591ec23f84925e6f8e8f
tree262be80ee636ba4bc960b1d2b5e08a3f8df6719d
parent1ba62f90e187e93b37d2bc88a818caa42ad51619
PR c++/35782, c++/37860

        PR c++/35782, c++/37860
        * call.c (build_user_type_conversion_1): Remember
        list-initialization.
        (convert_like_real): Likewise.
        (build_over_call): Don't require the copy constructor
        for copy-list-initialization.
        * cp-tree.h (TARGET_EXPR_LIST_INIT_P): New macro.

        PR c++/37234
        * decl.c (cp_finish_decl): Handle =default and =delete for
        templates, too.

From-SVN: r142379
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/defaulted5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist9.C [new file with mode: 0644]