From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 167E0387084F; Thu, 17 Dec 2020 16:47:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 167E0387084F From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98353] New: [9/10/11 Regression] ICE in propagate_necessity, at tree-ssa-dce.c:1053 Date: Thu, 17 Dec 2020 16:47:07 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 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: Thu, 17 Dec 2020 16:47:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98353 Bug ID: 98353 Summary: [9/10/11 Regression] ICE in propagate_necessity, at tree-ssa-dce.c:1053 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to r6 : $ cat z1.cc template class A {}; template struct B { static const int n =3D 1; template A ::n> f(); _Complex double c[2], d =3D 1.0; }; void g () { B().f(); } $ g++-5 -c z1.cc -O2 -std=3Dc++11 $ $ g++-11-20201213 -c z1.cc -O2 during GIMPLE pass: cddce z1.cc: In function 'void g()': z1.cc:10:1: internal compiler error: in propagate_necessity, at tree-ssa-dce.c:1053 10 | } | ^ 0xd7fa5b propagate_necessity ../../gcc/tree-ssa-dce.c:1053 0xd80a91 perform_tree_ssa_dce ../../gcc/tree-ssa-dce.c:1747 --- z1.cc: In function 'void g()': z1.cc:7:6: error: non-register as LHS of binary operation 7 | void g () | ^ D.2410.c[D.2438] =3D COMPLEX_EXPR <(double) 0, (double) 0>; z1.cc:7:6: internal compiler error: 'verify_gimple' failed 0xfd241d verify_gimple_in_seq(gimple*) ../../gcc/tree-cfg.c:5119 0xc97791 gimplify_body(tree_node*, bool) ../../gcc/gimplify.c:15329 0xc97a47 gimplify_function_tree(tree_node*) ../../gcc/gimplify.c:15400 0xac81f7 cgraph_node::analyze() ../../gcc/cgraphunit.c:670 0xacb326 analyze_functions ../../gcc/cgraphunit.c:1235 0xacc4dd symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2513=