re PR c++/36871 (__has_nothrow_copy(T) false for T with a template ctor)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 21 Jul 2008 16:18:38 +0000 (16:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 21 Jul 2008 16:18:38 +0000 (16:18 +0000)
commit279086c39066177adac8f9589683429e01c325a3
tree33a80a666b17715e8060cd31b2e1722080dc01e2
parent099735e9d6d8dfd80142c816232bcdc42f9a3046
re PR c++/36871 (__has_nothrow_copy(T) false for T with a template ctor)

/cp
2008-07-21  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/36871
PR c++/36872
* semantics.c (classtype_has_nothrow_assign_or_copy_p): Only check
copy constructors and copy assignment operators proper.

/testsuite
2008-07-21  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/36871
PR c++/36872
        * g++.dg/ext/has_nothrow_copy.C: Rename to...
        * g++.dg/ext/has_nothrow_copy-1.C: ... this.
        * g++.dg/ext/has_nothrow_copy-2.C: New.
        * g++.dg/ext/has_nothrow_copy-3.C: Likewise.
        * g++.dg/ext/has_nothrow_copy-4.C: Likewise.
        * g++.dg/ext/has_nothrow_copy-5.C: Likewise.
        * g++.dg/ext/has_nothrow_copy-6.C: Likewise.
        * g++.dg/ext/has_nothrow_copy-7.C: Likewise.

From-SVN: r138034
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/has_nothrow_copy.C [deleted file]