]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/38380 (explicitly defaulted constructors vs. empty direct initialization)
authorJason Merrill <jason@redhat.com>
Wed, 3 Dec 2008 19:22:08 +0000 (14:22 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 3 Dec 2008 19:22:08 +0000 (14:22 -0500)
commit27fb09b78e186d3d0173ee42cfc0af6801c2a9e2
tree8cd5b380bdc43051a74bfd205672a42e6737f609
parent6efe1abf4c1fa501ed14b8d70a9c3f63df46102c
re PR c++/38380 (explicitly defaulted constructors vs. empty direct initialization)

        PR c++/38380
        * decl.c (grokdeclarator): Only set DECL_NONCONVERTING_P
        on explicit constructors.
        * pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Propagate
        CONSTRUCTOR_IS_DIRECT_INIT.

From-SVN: r142404
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tc1/dr152.C
gcc/testsuite/g++.old-deja/g++.eh/ctor1.C