From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1612 invoked by alias); 30 Nov 2014 20:43:02 -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 1577 invoked by uid 48); 30 Nov 2014 20:42:59 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 Date: Sun, 30 Nov 2014 20:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2014-11/txt/msg03456.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64068 --- Comment #2 from Dmitry G. Dyachenko --- another testcase $ /usr/local/gcc_current/bin/g++ -fpreprocessed -c -O2 x.ii x.ii:46:19: internal compiler error: in remove_unreachable_nodes, at ipa.c:546 void fn4() { B(); } ^ 0xb14713 symbol_table::remove_unreachable_nodes(bool, _IO_FILE*) /home/dimhen/src/gcc_current/gcc/ipa.c:546 0x189e60c ipa_inline /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2193 0x189e60c execute /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2558 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ cat x.ii typedef int PROV_ENUMALGS_EX, PCCRYPT_OID_INFO; class A { int m_fn2(); virtual bool m_fn1(PCCRYPT_OID_INFO); }; int fn1(); void fn2(); int A::m_fn2() { m_fn1(0); } bool fn3() { for (;;) { if (fn1()) { if (fn1() != 259) fn2(); break; } return 1; } return 0; } class B { public: B() { fn3(); } }; class C : A { bool m_fn1(PCCRYPT_OID_INFO) { m_fn3(); } int isSupportedByProvider_algId; PROV_ENUMALGS_EX isSupportedByProvider_outEnumAlgs; PROV_ENUMALGS_EX isSupportedByProvider_enumAlgs; bool m_fn3() { while (1) { if (fn1()) { if (fn1() != 259) fn2(); break; } if (isSupportedByProvider_algId) isSupportedByProvider_outEnumAlgs = isSupportedByProvider_enumAlgs; return 1; } return 0; } }; void fn4() { B(); }