From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F2C53858D3C; Tue, 21 Mar 2023 20:47:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F2C53858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679431626; bh=p7r0U1z4uZvqaNKcuY75km8WZKQdWbJSdQtrdQl7MME=; h=From:To:Subject:Date:From; b=u5Q72OiTTVB9y76otIrollYUY6VLYWSMj/DrlmKyW+x33GeKpoCJk6LmlPYZCS+l+ AoLOQaE1rjHZWhO8VoAkxZ9zcGb19sAxBEtEOUnNz4fmzSdEu5XYcTxz1TGoGQV5+r q0Rauq4Hmhjc8YI0HSVBy8j5oXw3TODpURBcMd+A= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109241] New: [13 Regression] ICE Segmentation fault since for ccache package r13-6722-gb323f52ccf966800 Date: Tue, 21 Mar 2023 20:47:06 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc 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=3D109241 Bug ID: 109241 Summary: [13 Regression] ICE Segmentation fault since for ccache package r13-6722-gb323f52ccf966800 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jason at redhat dot com Target Milestone: --- Reduced from ccache package: $ cat LocalStorage.ii template struct integral_constant { static constexpr int value =3D __v; }; template using __enable_if_t =3D _Tp; template using __void_t =3D void; template _Tp __declval(long); template auto declval() -> decltype(__declval<_Tp>(0)); template struct __result_of_success; template struct __result_of_impl; template __result_of_success()(declval<_Args>...))> _S_test; template struct __result_of_impl { typedef decltype(_S_test<_Functor, _ArgTypes...>) type; }; template struct __invoke_result : __result_of_impl::value, integral_constant::value, _Functor, _ArgTypes...> {}; template struct __is_invocable_impl; template struct __is_invocable_impl<_Result, _Ret, __void_t> : integral_constant {}; template class function; template using _Requires =3D __enable_if_t<_Cond::value, _Tp>; template struct function<_Res(_ArgTypes...)> { template > struct _Callable : __is_invocable_impl<_Res2, _Res> {}; template >> function(_Functor) {} }; void for_each_cache_subdir(function)>) { for_each_cache_subdir([](auto, auto) { [](auto) { ({ struct __attribute__FMT_COMPILE_STRING {}; }); }; }); } $ g++ LocalStorage.ii -c LocalStorage.ii: In instantiation of =E2=80=98for_each_cache_subdir(functio= n)>):: [with auto:1 =3D char (*)(); au= to:2 =3D function (*)()]=E2=80=99: LocalStorage.ii:11:44: required from =E2=80=98struct __result_of_impl)>)::, char, function >=E2=80=99 LocalStorage.ii:31:10: recursively required by substitution of =E2=80=98template struct __is_invocable_impl<_Re= sult, _Ret, __void_t > [with _Result =3D __invoke_result)>)::, char, function >; _Ret = =3D void]=E2=80=99 LocalStorage.ii:31:10: required from =E2=80=98struct function)>::_Callable)>)::, for_each_cache_subdir(function)>)::, __invoke_result)>)::, char, function > >=E2=80= =99 LocalStorage.ii:26:7: required by substitution of =E2=80=98template using _Requires =3D __enable_if_t<_Cond::value, _Tp> [with _Cond= =3D function)>::_Callable)>)::, for_each_cache_subdir(function)>)::, __invoke_result)>)::, char, function > >; _Tp = =3D void]=E2=80=99 LocalStorage.ii:32:32: required by substitution of =E2=80=98template function)>::function(_Functor) [with _Func= tor =3D for_each_cache_subdir(function)>)::; =3D ]=E2=80=99 LocalStorage.ii:36:24: required from here LocalStorage.ii:38:7: internal compiler error: Segmentation fault 38 | ({ | ^ 0x11978cf crash_signal /home/marxin/Programming/gcc/gcc/toplev.cc:314 0x7ffff78b1edf ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.37/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sig= action.c:0 0xb19347 tree_check(tree_node*, char const*, int, char const*, tree_code) /home/marxin/Programming/gcc/gcc/tree.h:3539 0xb19347 find_parameter_packs_r /home/marxin/Programming/gcc/gcc/cp/pt.cc:4073 0x14873cd walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) /home/marxin/Programming/gcc/gcc/tree.cc:11327 0x1487a40 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) /home/marxin/Programming/gcc/gcc/tree.cc:11442 0xb1b105 check_for_bare_parameter_packs(tree_node*, unsigned int) /home/marxin/Programming/gcc/gcc/cp/pt.cc:4283 0xb7b5a5 finish_expr_stmt(tree_node*) /home/marxin/Programming/gcc/gcc/cp/semantics.cc:904 0xb3c3d2 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:18856 0xb3bbb4 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:19204 0xb66e68 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:18810 0xb66e68 tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:20203 0xb2f796 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:21715 0xb3977f tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:19872 0xb3ae47 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:18852 0xb3a201 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:18824 0xb3bbb4 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:19204 0xb3bbb4 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:19204 0xb46215 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.cc:18810 0xb46215 instantiate_body /home/marxin/Programming/gcc/gcc/cp/pt.cc:26815 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.=