From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7314 invoked by alias); 3 Oct 2012 14:21:39 -0000 Received: (qmail 7271 invoked by uid 55); 3 Oct 2012 14:21:24 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54777] [C++11] Comma operator in constexpr environment can cause ICE Date: Wed, 03 Oct 2012 14:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg00210.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54777 --- Comment #3 from Jakub Jelinek 2012-10-03 14:21:24 UTC --- Author: jakub Date: Wed Oct 3 14:21:20 2012 New Revision: 192036 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192036 Log: PR c++/54777 * semantics.c (cxx_eval_constant_expression) : 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: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ref4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog