OSDN Git Service

PR c++/54777
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2012 14:21:20 +0000 (14:21 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2012 14:21:20 +0000 (14:21 +0000)
commitfa0582d8e79ad3199766b570696c2949d02e2bfc
treea25c4a048d2a1b6eb4bf140ffce41e529962fb69
parentb6a8f26498086ea4eaac949d45f451a7a72d3dfc
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/trunk@192036 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]