]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/gcc-tumbl.git/commit
PR c++/54777
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2012 14:27:30 +0000 (14:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2012 14:27:30 +0000 (14:27 +0000)
commit9a1a5574e537279cb6e0ac2846704bea5537a4ef
treeea64af166a3494ed6dddaa74643bfd5a1f788967
parentb37d92bb85833e704664fd6f95f34f1dab777e56
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@192037 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ref4.C [new file with mode: 0644]