re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to...
authorJason Merrill <jason@redhat.com>
Mon, 27 Jun 2011 01:07:34 +0000 (21:07 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 27 Jun 2011 01:07:34 +0000 (21:07 -0400)
commit8c2f5419ea3a4c07d9c2cf2dfbc9bf52702e5bea
treeb3c6dfa58187de1d37cb50849814e31316a35059
parent149c083d32ca58a9a53d7e02f81f26886be7c00b
re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference)

PR c++/49528
* semantics.c (potential_constant_expression_1): Check
for non-literality rather than cleanup.
(cxx_eval_constant_expression): Likewise.

From-SVN: r175417
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-cleanup.C