From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D98FD385701E; Wed, 27 Sep 2023 18:32:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D98FD385701E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695839526; bh=tTMfGu4Gra74S5LJbHc9KFY6joRzWQ964IQ/EpOLh0U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IkZ+BvyyYCmWRCpWm2TzO1hCgBO26Y+XEoICSL0XFxm/SvT/1b12sZBhhMwjy6Zm9 Ijd89WjsSyv/oYCU7XYhahDGgUdaDUf3+TibhoMHWbRdziFVY6B4Sndv5w6EjJ2sXN W7TPIpfYo01nvQ7FOLjAqGNihRH2AV2VVm9HZxhw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111606] [11/12/13/14 Regression] [ICE] internal compiler error: error reporting routines re-entered. Date: Wed, 27 Sep 2023 18:32:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: trivial X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D111606 --- Comment #4 from Andrew Pinski --- (In reply to Markus F.X.J. Oberhumer from comment #0) > Test case has been reduced by cvise. >=20 > Might be related to / duplicate of >=20 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D90747 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100557 Looks unrelated to those two. Full backtrace: t.c: In instantiation of =E2=80=98const bool integral_constant<1>::value=E2= =80=99: t.c:10:3: required by substitution of =E2=80=98template Span::Sp= an(U, typename enable_if::value>::type) [with U =3D i= nt]=E2=80=99 t.c:13:11: required from here t.c:10:3: error: explicit instantiation of =E2=80=98integral_constant<1>::v= alue=E2=80=99 but no definition available [-fpermissive] 10 | Span(U, typename enable_if::value>::t= ype =3D 1){} | ^~~~ =E2=80=98 internal compiler error: error reporting routines re-entered. 0x10eb12b instantiate_decl(tree_node*, bool, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:27362 0xec2acc maybe_instantiate_decl(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:5555 0xebee56 decl_constant_var_p(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:4569 0xef4a04 constant_value_1 /home/apinski/src/upstream-gcc/gcc/gcc/cp/init.cc:2526 0xef4e58 decl_really_constant_value(tree_node*, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/init.cc:2617 0xdced8a cxx_eval_constant_expression /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:7216 0xdd1260 cxx_eval_constant_expression /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:7827 0xdd4f50 cxx_eval_outermost_constant_expr /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8517 0xdd60bd maybe_constant_value(tree_node*, tree_node*, mce_value) /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8806 0xdd6735 fold_non_dependent_expr(tree_node*, int, bool, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8945 0x11bf9c8 check_narrowing(tree_node*, tree_node*, int, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck2.cc:993 0xd5a283 convert_like_internal /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8879 0xd5a5c9 convert_like /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8944 0xd5a63a convert_like /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8959 0xd4a9ed build_converted_constant_expr_internal /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:4808 0xd4aa84 build_converted_constant_expr(tree_node*, tree_node*, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:4838 0x1084793 convert_nontype_argument /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:7414 0x1089896 convert_template_argument /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:8713 0x108b975 coerce_template_parms(tree_node*, tree_node*, tree_node*, int, bo= ol) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9205 0x108e57e lookup_template_class(tree_node*, tree_node*, tree_node*, tree_no= de*, int, int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9980 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.=