This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54777] [C++11] Comma operator in constexpr environment can cause ICE
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Oct 2012 14:27:35 +0000
- Subject: [Bug c++/54777] [C++11] Comma operator in constexpr environment can cause ICE
- Auto-submitted: auto-generated
- References: <bug-54777-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54777
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-03 14:27:35 UTC ---
Author: jakub
Date: Wed Oct 3 14:27:30 2012
New Revision: 192037
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192037
Log:
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.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-ref4.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/semantics.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog