From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28537 invoked by alias); 21 Dec 2013 05:13:41 -0000 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 Received: (qmail 28514 invoked by uid 48); 21 Dec 2013 05:13:36 -0000 From: "bruck.michael at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59571] New: [C++11] ICE when casting inside static member constexpr brace initializer Date: Sat, 21 Dec 2013 05:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruck.michael at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01980.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59571 Bug ID: 59571 Summary: [C++11] ICE when casting inside static member constexpr brace initializer Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com $ cat ice.cpp template struct foo { static constexpr int bar{(int)-1}; }; $ g++ -std=3Dc++11 -c ice.cpp ice.cpp:4:37: internal compiler error: unexpected expression =E2=80=98(int)= ((-1))=E2=80=99 of kind cast_expr static constexpr int bar{(int)-1}; ^ ice.cpp:4:37: internal compiler error: Aborted g++: internal compiler error: Aborted (program cc1plus) ... $ g++ --version g++ (GCC) 4.8.2 ... >>From gcc-bugs-return-438326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Dec 21 08:21:32 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12513 invoked by alias); 21 Dec 2013 08:21:31 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12474 invoked by uid 48); 21 Dec 2013 08:21:27 -0000 From: "davidxl at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/59303] [4.9 Regression] uninit-pred-8_b.c and uninit-pred-9_b.c fail after better optimizations Date: Sat, 21 Dec 2013 08:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: davidxl at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01981.txt.bz2 Content-length: 256 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59303 --- Comment #8 from davidxl at google dot com --- Created attachment 31495 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31495&action=edit Patch file : cleanup + more predicate simplification rules