From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 123303858C74; Tue, 4 Oct 2022 10:50:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 123303858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664880610; bh=5byuRMpLijgVHkAZg+f/f3uffTu4nLwp+XWk0w7+NXQ=; h=From:To:Subject:Date:From; b=yOui4OUOIWC0dQYXwUbSOmuY5hFDRoiBMZHihDl8wTxglEbyEvCs9ddbFi3mpGaiB +Jb/ftubOwxm44q6AO8riRDOay/mkYwtWQglvhruIiCklMjtYkTRf8aV9Vts8XYN3Q FaPVnKgS/WNeeL9uSGebBiDsVBpvXixtPwNixdtM= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107150] New: ICE: tree check: expected function_type or method_type, have lang_type in deduce_noexcept_on_destructor, at cp/class.cc:5183 Date: Tue, 04 Oct 2022 10:50: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: 13.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx 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 keywords 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=3D107150 Bug ID: 107150 Summary: ICE: tree check: expected function_type or method_type, have lang_type in deduce_noexcept_on_destructor, at cp/class.cc:5183 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++ 13.0.0 20220925 snapshot (g:77bbf69d2981dafc2ef3e59bfbefb645d88bab9d) I= CEs when compiling the following testcase, reduced from clang/testsuite/CXX/class/class.dtor/p4.cpp from the clang 15.0.1 test suit= e: template struct D { ~D() requires(N !=3D 0) =3D delete; ~D() requires(N =3D=3D 1) =3D delete; }; template struct D<0>; % g++-13.0.0 -fconcepts -c ghba8ll9.cpp ghba8ll9.cpp: In instantiation of 'struct D<0>': ghba8ll9.cpp:7:17: required from here ghba8ll9.cpp:2:8: internal compiler error: tree check: expected function_ty= pe or method_type, have lang_type in deduce_noexcept_on_destructor, at cp/class.cc:5183 2 | struct D { | ^ 0x891780 tree_check_failed(tree_node const*, char const*, int, char const*, ...) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/tr= ee.cc:8827 0x690b3a tree_check2(tree_node*, char const*, int, char const*, tree_code, tree_code) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/tr= ee.h:3539 0x690b3a deduce_noexcept_on_destructor(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /class.cc:5183 0x99d6c9 check_bases_and_members =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /class.cc:6045 0x9a150b finish_struct_1(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /class.cc:7492 0xb8ead0 instantiate_class_template(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /pt.cc:12468 0xbe5c28 complete_type(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /typeck.cc:138 0xb850ca do_type_instantiation(tree_node*, tree_node*, int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /pt.cc:26074 0xb1ea7f cp_parser_explicit_instantiation =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /parser.cc:19262 0xb308ac cp_parser_declaration =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /parser.cc:15075 0xb31509 cp_parser_toplevel_declaration =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /parser.cc:15130 0xb31509 cp_parser_translation_unit =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /parser.cc:5068 0xb31509 c_parse_file() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/cp= /parser.cc:48606 0xc6e3a1 c_common_parse_file() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/c-= family/c-opts.cc:1255 g++ 12 and earlier releases ICE with a splat identical to the one reported = in PR96745. I'm not sure if this PR is a duplicate of that earlier one.=