From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D604393880A; Wed, 18 Mar 2020 17:45:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D604393880A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584553502; bh=zHMH/GXh5VPbtaDDwC81KEJv++6W0Cjwt/cMyORtlzE=; h=From:To:Subject:Date:From; b=uPfls0hPRskydwffpBwk8vIOnV9jX6HmjsaPP3Tq/CZRib1tUgL3686gpquB/Cicz qzpQ7Q+Q2sMitjojYD+PAF+uybb4/HacAj9+zUMBCxLq3H+7iAffgKWeokbpiBNzr7 gQnjJGnjCpUh2JBFR1qITwibbi8soStmA1aKAD9Q= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/94217] New: [10 Regression] ICE in ipa_find_agg_cst_for_param, at ipa-prop.c:3467 since r10-7237-g4e3d3e40726e1b68 Date: Wed, 18 Mar 2020 17:45:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 cc target_milestone 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 17:45:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94217 Bug ID: 94217 Summary: [10 Regression] ICE in ipa_find_agg_cst_for_param, at ipa-prop.c:3467 since r10-7237-g4e3d3e40726e1b68 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org, marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org Target Milestone: --- Related to the same revision as PR94216, but it's not fixed with https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94216#c1: $ cat star.ii template struct A { A(int, _T2); }; template class B= { struct C { C(B &p1) : _M_t(p1) {} template void operator()(_Arg) { _M_t._M_create_node();= } B &_M_t; }; void _M_create_node(); int _S_key() { } template int _M_insert_(int *, int *, _Arg &&, _NodeGen &); public: template A _M_insert_unique(_Arg &&); }; template template int B<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(int *p1, int *= p2, _Arg &&, _NodeGen &p4) { p1 || p2 || _S_key(); p4(0); } template template A B<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg &&) { int a; int *b; C c(*this); _M_insert_(&a, b, 0, c); return A (1, false); } struct IdIsoLanguageEntry; class D { public: typedef A value_type; B _M_t; void insert(value_type p1) { _M_t._M_insert_unique(p1); } }; class F { public: F(const char *); }; enum { LANGUAGE_ENGLISH }; struct IdIsoLanguageEntry { int m_languageId; const char m_language[3]; F m_country; } d[]{LANGUAGE_ENGLISH, "", ""}; class IdIsoLanguageMap { public: IdIsoLanguageMap() { for (auto l : d) m_idLanguageMap.insert(D::value_type(l.m_languageId, l)); } D m_idLanguageMap; } e; $ g++ star.ii -c -flto -O2 -o x.o && gcc -shared x.o star.ii: In member function =E2=80=98int B< , , , , >::_S_key()=E2=80=99: star.ii:9:19: warning: no return statement in function returning non-void [-Wreturn-type] 9 | int _S_key() { } | ^ star.ii: In member function =E2=80=98int B< , , , , >::_M_insert_(int*, int*, _Arg&&, _NodeGen&)=E2=80= =99: star.ii:24:1: warning: no return statement in function returning non-void [-Wreturn-type] 24 | } | ^ during IPA pass: cp lto1: internal compiler error: in ipa_find_agg_cst_for_param, at ipa-prop.c:3467 0xdc77e7 ipa_find_agg_cst_for_param(ipa_agg_value_set*, tree_node*, long, b= ool, bool*) /home/marxin/Programming/gcc/gcc/ipa-prop.c:3467 0xd87e7f evaluate_conditions_for_known_args /home/marxin/Programming/gcc/gcc/ipa-fnsummary.c:371 0xd93a6a estimate_ipcp_clone_size_and_time(cgraph_node*, vec, vec, vec, int*, sreal*, sreal*, int*) /home/marxin/Programming/gcc/gcc/ipa-fnsummary.c:3658 0x205c840 estimate_local_effects /home/marxin/Programming/gcc/gcc/ipa-cp.c:3478 0x205d78a propagate_constants_topo /home/marxin/Programming/gcc/gcc/ipa-cp.c:3816 0x205da33 ipcp_propagate_stage /home/marxin/Programming/gcc/gcc/ipa-cp.c:3912 0x206262e ipcp_driver /home/marxin/Programming/gcc/gcc/ipa-cp.c:5908 0x2062814 execute /home/marxin/Programming/gcc/gcc/ipa-cp.c:6001 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status=