From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 936CF38618FF; Wed, 10 Feb 2021 17:08:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 936CF38618FF From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99063] New: [9/10/11 Regression] ICE in prep_operand, at cp/call.c:5842 Date: Wed, 10 Feb 2021 17:08:09 +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: Wed, 10 Feb 2021 17:08:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99063 Bug ID: 99063 Summary: [9/10/11 Regression] ICE in prep_operand, at cp/call.c:5842 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: --- Started with r8 (before 20180525) : $ cat z1.cc template void f (a... n) { do; while (--n); {} } void g () { f(3); } $ cat z2.cc template void f (a... n) { do; while (n--); {} } void g () { f(1,2); } $ g++-11-20210207 -c z1.cc z1.cc: In instantiation of 'void f(a ...) [with a =3D {int}]': z1.cc:8:6: required from here z1.cc:4:14: internal compiler error: Segmentation fault 4 | do; while (--n); {} | ^~~ 0xcd922f crash_signal ../../gcc/toplev.c:327 0x66567d prep_operand ../../gcc/cp/call.c:5842 0x677955 build_new_op_1 ../../gcc/cp/call.c:6224 0x6786c0 build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) ../../gcc/cp/call.c:6676 0x80d982 build_x_unary_op(unsigned int, tree_code, cp_expr, int) ../../gcc/cp/typeck.c:6136 0x7b5e11 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/cp/pt.c:19737 0x7c6a67 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:19084 0x7c65f8 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18411 0x7c5c17 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18475 0x7ba4f3 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:25835 0x7ba4f3 instantiate_body ../../gcc/cp/pt.c:25835 0x7bb580 instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.c:26124 0x7d5bab instantiate_pending_templates(int) ../../gcc/cp/pt.c:26203 0x6ecab2 c_parse_final_cleanups() ../../gcc/cp/decl2.c:4965=