From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D02638469BF; Mon, 12 Dec 2022 05:48:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D02638469BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670824118; bh=K80HIbqAhWwLMAkgXIQ5bNsxI3qL4raMIyPYEZhO7Tw=; h=From:To:Subject:Date:From; b=QN9S7hV5Efw1s0EvuE4toVTJ99OsuhYINubeWo7IbyCpFN4NKsUrFlRA683hF8/J/ jvXIpj8QC73Yo2OhFhdIIu+Tvzv34robl7WjiZFp7c/WmM3nv1jFqfp+nZa1XTnevA ZuqRnuO2hkMbaYRy9UNHSUuTG+dcrnyxa3VqGPZ4= From: "danakj at orodu dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 Date: Mon, 12 Dec 2022 05:48:37 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danakj at orodu dot net 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108066 Bug ID: 108066 Summary: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: danakj at orodu dot net Target Milestone: --- ``` template struct Foo; template concept C =3D true; template struct Foo { template requires ((... && C)) friend void bar(Foo, Foo) {} }; int main() { Foo x; bar(x, Foo()); } ``` godbolt: https://godbolt.org/z/KozobKa1q : In instantiation of 'struct Foo': :15:14: required from here :10:27: internal compiler error: in use_pack_expansion_extra_args_p= , at cp/pt.cc:12661 10 | requires ((... && C)) | ~~~~~~~~~^~~~~~~~~ 0x22efc1e internal_error(char const*, ...) ???:0 0xa4af9a fancy_abort(char const*, int, char const*) ???:0 0xabf850 tsubst_constraint(tree_node*, tree_node*, int, tree_node*) ???:0 0xabf939 maybe_substitute_reqs_for(tree_node*, tree_node const*) ???:0 0xc7c12c instantiate_class_template(tree_node*) ???:0 0xafe1a3 start_decl_1(tree_node*, bool) ???:0 0xb1ffb7 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ???:0 0xc242c7 c_parse_file() ???:0 0xd5e809 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ASM generation compiler returned: 1 : In instantiation of 'struct Foo': :15:14: required from here :10:27: internal compiler error: in use_pack_expansion_extra_args_p= , at cp/pt.cc:12661 10 | requires ((... && C)) | ~~~~~~~~~^~~~~~~~~ 0x22efc1e internal_error(char const*, ...) ???:0 0xa4af9a fancy_abort(char const*, int, char const*) ???:0 0xabf850 tsubst_constraint(tree_node*, tree_node*, int, tree_node*) ???:0 0xabf939 maybe_substitute_reqs_for(tree_node*, tree_node const*) ???:0 0xc7c12c instantiate_class_template(tree_node*) ???:0 0xafe1a3 start_decl_1(tree_node*, bool) ???:0 0xb1ffb7 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ???:0 0xc242c7 c_parse_file() ???:0 0xd5e809 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Execution build compiler returned: 1=