re PR c++/36855 (__has_trivial_destructor() returns false for reference types.)
authorPaolo Carlini <paolo@gcc.gnu.org>
Thu, 17 Jul 2008 09:11:11 +0000 (09:11 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 17 Jul 2008 09:11:11 +0000 (09:11 +0000)
commitafb86620e1ae16abdde90ccca6e106472ef6d70d
treedc4d9a5e45e100a882c0f61e398daa1470f6e4a8
parentb08c51086fceec9cd27858dae48bf55fbbfccc1c
re PR c++/36855 (__has_trivial_destructor() returns false for reference types.)

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

PR c++/36855
* semantics.c (trait_expr_value): Update __has_trivial_destructor
semantics to the current WP (N2691).

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

PR c++/36855
* g++.dg/ext/has_trivial_destructor.C: Rename to...
* g++.dg/ext/has_trivial_destructor-1.C: ... this.
* g++.dg/ext/has_trivial_destructor-2.C: New.

From-SVN: r137914
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C [moved from gcc/testsuite/g++.dg/ext/has_trivial_destructor.C with 100% similarity]
gcc/testsuite/g++.dg/ext/has_trivial_destructor-2.C [new file with mode: 0644]