From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D6E23846034; Tue, 24 Nov 2020 18:30:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D6E23846034 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97973] New: [10/11 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:19577 Date: Tue, 24 Nov 2020 18:30:48 +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: Tue, 24 Nov 2020 18:30:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97973 Bug ID: 97973 Summary: [10/11 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:19577 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 r10 between 20200119 and 20200126 : $ cat z1.cc void a (const int& b); template int d { a[1](1.); } $ g++-11-20201122 -c z1.cc z1.cc:2:35: internal compiler error: in tsubst_copy_and_build, at cp/pt.c:1= 9577 2 | template int d { a[1](1.); } | ^ 0x768e61 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/cp/pt.c:19577 0x7688d2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/cp/pt.c:19477 0x6817cc fold_non_dependent_expr_template ../../gcc/cp/constexpr.c:7177 0x6df205 fold_for_warn(tree_node*) ../../gcc/cp/expr.c:409 0x800ebc check_function_restrict ../../gcc/c-family/c-common.c:5468 0x800ebc check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec*) ../../gcc/c-family/c-common.c:5840 0x7c9607 cp_build_function_call_vec(tree_node*, vec**, int, tree_node*) ../../gcc/cp/typeck.c:4024 0x79689f finish_call_expr(tree_node*, vec**, b= ool, bool, int) ../../gcc/cp/semantics.c:2728 0x73f005 cp_parser_postfix_expression ../../gcc/cp/parser.c:7556 0x7471b5 cp_parser_unary_expression ../../gcc/cp/parser.c:8659 0x7211ff cp_parser_cast_expression ../../gcc/cp/parser.c:9562 0x721a32 cp_parser_binary_expression ../../gcc/cp/parser.c:9664 0x7231c0 cp_parser_assignment_expression ../../gcc/cp/parser.c:9968 0x7221ad cp_parser_constant_expression ../../gcc/cp/parser.c:10264 0x722711 cp_parser_initializer_clause ../../gcc/cp/parser.c:23723 0x7228b4 cp_parser_initializer_list ../../gcc/cp/parser.c:24002 0x7228b4 cp_parser_braced_list ../../gcc/cp/parser.c:23764 0x726082 cp_parser_initializer ../../gcc/cp/parser.c:23681 0x74e50e cp_parser_init_declarator ../../gcc/cp/parser.c:21323 0x751014 cp_parser_single_declaration ../../gcc/cp/parser.c:29997=