re PR c++/54777 ([C++11] Comma operator in constexpr environment can cause ICE)
commit75ab707c7532221207fb89647c555438166c6f89
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Oct 2012 14:21:20 +0000 (3 16:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Oct 2012 14:21:20 +0000 (3 16:21 +0200)
treea25c4a048d2a1b6eb4bf140ffce41e529962fb69
parent2352eadb81e329fad9adbead81db9203610aa19a
re PR c++/54777 ([C++11] Comma operator in constexpr environment can cause ICE)

PR c++/54777
* semantics.c (cxx_eval_constant_expression) <case COMPOUND_EXPR>: If
not ignoring the second operand, pass the original second operand
and not one with stripped nops to cxx_eval_constant_expression.

* g++.dg/cpp0x/constexpr-ref4.C: New test.

From-SVN: r192036
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ref4.C [new file with mode: 0644]