From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24203 invoked by alias); 22 Aug 2014 04:31: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 Received: (qmail 21062 invoked by uid 48); 22 Aug 2014 04:31:28 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/62208] ICE with LTO on valid code at -O3 on x86_64-linux-gnu in trunc_int_for_mode, at explow.c:56 Date: Fri, 22 Aug 2014 04:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail 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: Message-ID: In-Reply-To: References: 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: 2014-08/txt/msg01504.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62208 --- Comment #3 from Uro=C5=A1 Bizjak --- I can also confirm the ICE on Fedora 20 with: $ ld --version GNU ld version 2.23.2 Copyright 2012 Free Software Foundation, Inc. $ ./xgcc -B ./gcc -flto -m32 -O3 pr62208.c=20 pr62208.c: In function =E2=80=98main=E2=80=99: pr62208.c:21:1: internal compiler error: in trunc_int_for_mode, at explow.c= :56 } ^ 0x682d90 trunc_int_for_mode(long, machine_mode) >>From gcc-bugs-return-459006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 22 04:31:18 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13773 invoked by alias); 22 Aug 2014 04:31:17 -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 10324 invoked by uid 48); 22 Aug 2014 04:31:13 -0000 From: "tower120 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62222] New: 'tuple_element_t' was not declared in this scope Date: Fri, 22 Aug 2014 04:31: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tower120 at gmail 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg01503.txt.bz2 Content-length: 951 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62222 Bug ID: 62222 Summary: 'tuple_element_t' was not declared in this scope Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tower120 at gmail dot com In the following code (http://coliru.stacked-crooked.com/a/f78031af320b07f0) #include #include #include #include using namespace std; int main(){ using T = tuple; using el = tuple_element_t<0, T>; } main.cpp: In function 'int main()': main.cpp:12:16: error: 'tuple_element_t' does not name a type using el = tuple_element_t<0, T> ^ Compiled with gcc 4.9 MinGW Windows. g++ -std=c++1y -O3 -Winline -Wextra -pthread -pedantic-errors main.cpp -lm && ./a.out