From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF48C3858D35; Tue, 4 Jul 2023 18:07:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF48C3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688494040; bh=bPF/P7SHOU/UB42+0yJgm6VIWB77jCv7nsch8qVRekI=; h=From:To:Subject:Date:From; b=pNKWKkRVA7yedTeDcMrOMDdlStcDmAZicupSu1+sr47zR5gzJwgtfLgK86jG+xB7x smEjx3dUDMfhMdx7a/RMsMcgX7wqd5dCM7WGJRIflL9yg8wTBVv1WAFyKUnlEyGpBc pNp9hi+fAcIDEE6QYiVoWAplQBF1StOMiD7WOh+E= From: "eric.niebler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110552] New: ICE on valid code in maybe_instantiate_noexcept Date: Tue, 04 Jul 2023 18:07:20 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eric.niebler at gmail dot com 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 attachments.created 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=3D110552 Bug ID: 110552 Summary: ICE on valid code in maybe_instantiate_noexcept Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric.niebler at gmail dot com Target Milestone: --- Created attachment 55469 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55469&action=3Dedit self-contained source file Compile the attached source with -std=3Dc++20. Result: /home/eniebler/hello_world.cpp: In substitution of =E2=80=98template requires tag_invocable constexpr stdexec::__tag_invoke::tag_invoke_result_t stdexec::__env::get_env_t::operator()(const _EnvProvider&) c= onst [with _EnvProvider =3D stdexec::__basic_sender<:: >]=E2=80=99: /home/eniebler/hello_world.cpp:2221:16: required from here /home/eniebler/hello_world.cpp:1465:59: internal compiler error: in maybe_instantiate_noexcept, at cp/pt.cc:26753 1465 | requires(_Tag __tag, _Args&&... __args) { tag_invoke((_Tag&&) __tag, (_Args&&) __args...); }; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0xace10a maybe_instantiate_noexcept(tree_node*, int) ../../gcc/cp/pt.cc:26753 0x96272f mark_used(tree_node*, int) ../../gcc/cp/decl2.cc:5720 0x864a35 build_over_call ../../gcc/cp/call.cc:10394 0x867e0b build_new_function_call(tree_node*, vec**, int) ../../gcc/cp/call.cc:5038 0xb304ff finish_call_expr(tree_node*, vec**, b= ool, bool, int) ../../gcc/cp/semantics.cc:2924 0xacc4e5 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:21338 0xabb964 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:19888 0x8c3193 tsubst_valid_expression_requirement ../../gcc/cp/constraint.cc:2002 0x8cc3c0 tsubst_simple_requirement ../../gcc/cp/constraint.cc:2036 0x8cc3c0 tsubst_requirement ../../gcc/cp/constraint.cc:2233 0x8cc3c0 tsubst_requires_expr ../../gcc/cp/constraint.cc:2363 0x8cc8aa tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/constraint.cc:2382 0xac96c7 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:21749 0xabb964 tsubst_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.cc:19888 0x8cde63 satisfy_atom ../../gcc/cp/constraint.cc:3041 0x8cde63 satisfy_constraint_r ../../gcc/cp/constraint.cc:3106 0x8ce723 satisfy_normalized_constraints ../../gcc/cp/constraint.cc:3131 0x8caefd satisfy_declaration_constraints ../../gcc/cp/constraint.cc:3352 0x8caefd constraint_satisfaction_value ../../gcc/cp/constraint.cc:3373 0x8ce78f constraints_satisfied_p(tree_node*, tree_node*) ../../gcc/cp/constraint.cc:3410 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. See https://godbolt.org/z/1511TYvch for a demo of the bug on compiler explo= rer.=