PR c++/35782, c++/37860
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2008 23:52:02 +0000 (23:52 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2008 23:52:02 +0000 (23:52 +0000)
commit5c9c5a4bd72db283569bc837eb3748fb69326568
tree262be80ee636ba4bc960b1d2b5e08a3f8df6719d
parentcff753f3424afae64b0a6c3c5527ff757814aac1
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142379 138bc75d-0d04-0410-961f-82ee72b054a4
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]