From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19096 invoked by alias); 16 Nov 2012 03:36:56 -0000 Received: (qmail 19065 invoked by uid 48); 16 Nov 2012 03:36:37 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/54728] [4.8 regression] ICE in input_gimple_stmt, at gimple-streamer-in.c:254 Date: Fri, 16 Nov 2012 03:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 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" Content-Transfer-Encoding: quoted-printable 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-11/txt/msg01468.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54728 --- Comment #7 from Andrew Pinski 2012-11-16 0= 3:36:35 UTC --- here is the most reduced testcase. cat > foo1.cc << EOF template struct basic_string { struct _Rep { _CharT* _M_refdata() throw() { return 0; } }; _CharT * dst; static _Rep& _S_empty_rep(); basic_string() : dst(_S_empty_rep()._M_refdata()) { } }; extern template class basic_string; struct basic_ostringstream { basic_string _M_stringbuf; }; basic_ostringstream foo1; EOF sed s/foo1/foo2/ < foo1.cc > foo2.cc g++ -Wfatal-errors t1.cc t2.cc -fpic -flto -c g++ -Wfatal-errors t1.o t2.o -shared -flto -o t.so -flto-partition=3Dnone In member function =E2=80=98_M_refdata=E2=80=99: lto1: internal compiler error: in input_gimple_stmt, at gimple-streamer-in.c:255 0xc565b6 input_gimple_stmt ....