public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered.
@ 2023-09-27  6:33 markus at oberhumer dot com
  2023-09-27  6:34 ` [Bug c++/111606] " markus at oberhumer dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: markus at oberhumer dot com @ 2023-09-27  6:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

            Bug ID: 111606
           Summary: [ICE] internal compiler error: error reporting
                    routines re-entered.
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markus at oberhumer dot com
  Target Milestone: ---

Link at Compiler Explorer:

  https://godbolt.org/z/EbPWr3qxx

I stumbled on this while compiling some invalid code during refactoring.

Test case has been reduced by cvise.

Might be related to / duplicate of

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90747
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100557

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/111606] [ICE] internal compiler error: error reporting routines re-entered.
  2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
@ 2023-09-27  6:34 ` markus at oberhumer dot com
  2023-09-27 18:05 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: markus at oberhumer dot com @ 2023-09-27  6:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

--- Comment #1 from Markus F.X.J. Oberhumer <markus at oberhumer dot com> ---
Created attachment 55999
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55999&action=edit
bug.cpp

Added attachment bug.cpp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/111606] [ICE] internal compiler error: error reporting routines re-entered.
  2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
  2023-09-27  6:34 ` [Bug c++/111606] " markus at oberhumer dot com
@ 2023-09-27 18:05 ` pinskia at gcc dot gnu.org
  2023-09-27 18:08 ` [Bug c++/111606] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-27 18:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 56005
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56005&action=edit
Reduced further

Attached is the testcase reduced further, and adding back to make it more valid
code.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/111606] [11/12/13/14 Regression] [ICE] internal compiler error: error reporting routines re-entered.
  2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
  2023-09-27  6:34 ` [Bug c++/111606] " markus at oberhumer dot com
  2023-09-27 18:05 ` pinskia at gcc dot gnu.org
@ 2023-09-27 18:08 ` pinskia at gcc dot gnu.org
  2023-09-27 18:32 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-27 18:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Target Milestone|---                         |11.5
      Known to fail|                            |6.3.0
            Summary|[ICE] internal compiler     |[11/12/13/14 Regression]
                   |error: error reporting      |[ICE] internal compiler
                   |routines re-entered.        |error: error reporting
                   |                            |routines re-entered.
     Ever confirmed|0                           |1
           Severity|normal                      |trivial
   Last reconfirmed|                            |2023-09-27
      Known to work|                            |6.2.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/111606] [11/12/13/14 Regression] [ICE] internal compiler error: error reporting routines re-entered.
  2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
                   ` (2 preceding siblings ...)
  2023-09-27 18:08 ` [Bug c++/111606] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
@ 2023-09-27 18:32 ` pinskia at gcc dot gnu.org
  2023-09-27 18:34 ` pinskia at gcc dot gnu.org
  2023-09-27 19:30 ` markus at oberhumer dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-27 18:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Markus F.X.J. Oberhumer from comment #0)
> Test case has been reduced by cvise.
> 
> Might be related to / duplicate of
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90747
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100557

Looks unrelated to those two.

Full backtrace:
t.c: In instantiation of ‘const bool integral_constant<1>::value’:
t.c:10:3:   required by substitution of ‘template<class U> Span::Span(U,
typename enable_if<XSpan_ptr_is_convertible<U>::value>::type) [with U = int]’
t.c:13:11:   required from here
t.c:10:3: error: explicit instantiation of ‘integral_constant<1>::value’ but no
definition available [-fpermissive]
   10 |   Span(U, typename enable_if<XSpan_ptr_is_convertible<U>::value>::type
= 1){}
      |   ^~~~
‘
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, bool)
        /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9205
0x108e57e lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
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 <https://gcc.gnu.org/bugs/> for instructions.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/111606] [11/12/13/14 Regression] [ICE] internal compiler error: error reporting routines re-entered.
  2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
                   ` (3 preceding siblings ...)
  2023-09-27 18:32 ` pinskia at gcc dot gnu.org
@ 2023-09-27 18:34 ` pinskia at gcc dot gnu.org
  2023-09-27 19:30 ` markus at oberhumer dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-27 18:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually here is the full backtrace:
#2  0x0000000003524383 in error_recursion (context=0x4d471a0
<global_diagnostic_context>) at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:2265
#3  0x00000000035217be in diagnostic_report_diagnostic (context=0x4d471a0
<global_diagnostic_context>, diagnostic=0x7fffffff9e20) at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1543
#4  0x0000000003522102 in diagnostic_impl (richloc=0x7fffffff9f00,
metadata=0x0, opt=-1, gmsgid=0x39302e0 "explicit instantiation of %qD but no
definition available", ap=0x7fffffff9ee8, kind=DK_PERMERROR) at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1770
#5  0x0000000003523434 in permerror (location=2147483649, gmsgid=0x39302e0
"explicit instantiation of %qD but no definition available") at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:2037
#6  0x00000000010eb12c in instantiate_decl (d=<var_decl 0x7ffff7250d80 value>,
defer_ok=false, expl_inst_class_mem_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:27362
#7  0x0000000000ec2acd in maybe_instantiate_decl (decl=<var_decl 0x7ffff7250d80
value>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:5555
#8  0x0000000000ebee57 in decl_constant_var_p (decl=<var_decl 0x7ffff7250d80
value>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:4569
#9  0x0000000000ef4a05 in constant_value_1 (decl=<var_decl 0x7ffff7250d80
value>, strict_p=true, return_aggregate_cst_ok_p=true, unshare_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/init.cc:2526
#10 0x0000000000ef4e59 in decl_really_constant_value (decl=<var_decl
0x7ffff7250d80 value>, unshare_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/init.cc:2617
#11 0x0000000000dced8b in cxx_eval_constant_expression (ctx=0x7fffffffa7b0,
t=<var_decl 0x7ffff7250d80 value>, lval=vc_prvalue,
non_constant_p=0x7fffffffa730, overflow_p=0x7fffffffa731, jump_target=0x0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:7216
#12 0x0000000000dd1261 in cxx_eval_constant_expression (ctx=0x7fffffffa7b0,
t=<nop_expr 0x7ffff740f480>, lval=vc_prvalue, non_constant_p=0x7fffffffa730,
overflow_p=0x7fffffffa731, jump_target=0x0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:7827
#13 0x0000000000dd4f51 in cxx_eval_outermost_constant_expr (t=<nop_expr
0x7ffff740f480>, allow_non_constant=true, strict=true,
manifestly_const_eval=mce_value::mce_true, constexpr_dtor=false, object=<tree
0x0>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8517
#14 0x0000000000dd60be in maybe_constant_value (t=<nop_expr 0x7ffff740f480>,
decl=<tree 0x0>, manifestly_const_eval=mce_value::mce_true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8806
#15 0x0000000000dd6736 in fold_non_dependent_expr (t=<nop_expr 0x7ffff740f480>,
complain=0, manifestly_const_eval=true, object=<tree 0x0>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8945
#16 0x00000000011bf9c9 in check_narrowing (type=<integer_type 0x7ffff72655e8
int>, init=<nop_expr 0x7ffff740f480>, complain=0, const_only=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck2.cc:993
#17 0x0000000000d5a284 in convert_like_internal (convs=0x4dea410,
expr=<nop_expr 0x7ffff740f480>, fn=<tree 0x0>, argnum=0,
issue_conversion_warnings=true, c_cast_p=false, nested_p=false, complain=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8879
#18 0x0000000000d5a5ca in convert_like (convs=0x4dea410, expr=<var_decl
0x7ffff7250d80 value>, fn=<tree 0x0>, argnum=0, issue_conversion_warnings=true,
c_cast_p=false, nested_p=false, complain=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8944
#19 0x0000000000d5a63b in convert_like (convs=0x4dea410, expr=<var_decl
0x7ffff7250d80 value>, complain=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8959
#20 0x0000000000d4a9ee in build_converted_constant_expr_internal
(type=<integer_type 0x7ffff72655e8 int>, expr=<var_decl 0x7ffff7250d80 value>,
flags=5, complain=0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:4808
#21 0x0000000000d4aa85 in build_converted_constant_expr (type=<integer_type
0x7ffff72655e8 int>, expr=<var_decl 0x7ffff7250d80 value>, complain=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:4838
#22 0x0000000001084794 in convert_nontype_argument (type=<integer_type
0x7ffff72655e8 int>, expr=<var_decl 0x7ffff7250d80 value>, complain=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:7414
#23 0x0000000001089897 in convert_template_argument (parm=<parm_decl
0x7ffff7ff6280>, arg=<var_decl 0x7ffff7250d80 value>, args=<tree_vec
0x7ffff740f460>, complain=0, i=0, in_decl=<template_decl 0x7ffff7ff6300
enable_if>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:8713
#24 0x000000000108b976 in coerce_template_parms (parms=<tree_vec
0x7ffff73e6bc0>, args=<tree_vec 0x7ffff740f440>, in_decl=<template_decl
0x7ffff7ff6300 enable_if>, complain=0, require_all_args=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9205
#25 0x000000000108e57f in lookup_template_class (d1=<identifier_node
0x7ffff74033c0 enable_if>, arglist=<tree_vec 0x7ffff740f440>, in_decl=<tree
0x0>, context=<tree 0x0>, entering_scope=1, complain=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9980
#26 0x00000000010a2e5c in tsubst_aggr_type_1 (t=<record_type 0x7ffff73f2738
enable_if>, args=<tree_vec 0x7ffff740f060>, complain=0, in_decl=<tree 0x0>,
entering_scope=1) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:14055
#27 0x00000000010a2ca5 in tsubst_aggr_type (t=<record_type 0x7ffff73f2738
enable_if>, args=<tree_vec 0x7ffff740f060>, complain=16384, in_decl=<tree 0x0>,
entering_scope=1) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:14019
#28 0x00000000010b3d52 in tsubst (t=<typename_type 0x7ffff73f27e0 type>,
args=<tree_vec 0x7ffff740f060>, complain=0, in_decl=<tree 0x0>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:16589
#29 0x0000000000ecdda9 in dump_template_bindings (pp=0x4b8f220
<actual_pretty_printer>, parms=<tree 0x0>, args=<tree_vec 0x7ffff740f060>,
typenames=0x7ffff7409ca8 = {...}) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:492
#30 0x0000000000ed47ac in dump_substitution (pp=0x4b8f220
<actual_pretty_printer>, t=<template_decl 0x7ffff7ff6780 __ct >,
template_parms=<tree_list 0x7ffff73eef50>, template_args=<tree_vec
0x7ffff740f060>, flags=132) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:1703
#31 0x0000000000ed64b9 in dump_function_decl (pp=0x4b8f220
<actual_pretty_printer>, t=<template_decl 0x7ffff7ff6780 __ct >, flags=132) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:1872
#32 0x0000000000ed3399 in dump_decl (pp=0x4b8f220 <actual_pretty_printer>,
t=<function_decl 0x7ffff740d500 __ct >, flags=132) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:1421
#33 0x0000000000edd633 in decl_to_string (decl=<function_decl 0x7ffff740d500
__ct >, verbose=1, show_color=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:3308
#34 0x0000000000ee148e in cp_printer (pp=0x4da4990, text=0x7fffffffbb00,
spec=0x4da5fe2 "D", precision=0, wide=false, set_locus=false, verbose=true,
quoted=0x7fffffffb751, buffer_ptr=0x4da5df0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:4482
#35 0x0000000003555006 in pp_format (pp=0x4da4990, text=0x7fffffffbb00) at
/home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.cc:1475
#36 0x000000000355542a in pp_format_verbatim (pp=0x4da4990,
text=0x7fffffffbb00) at
/home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.cc:1536
#37 0x0000000003555cfe in pp_verbatim (pp=0x4da4990, msg=0x38f2478 "required
from %q#D\n") at /home/apinski/src/upstream-gcc/gcc/gcc/pretty-print.cc:1790
#38 0x0000000000edf5b8 in print_instantiation_partial_context_line
(context=0x4d471a0 <global_diagnostic_context>, t=0x7ffff7402c60,
loc=2147483649, recursive_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:3764
#39 0x0000000000edf8f7 in print_instantiation_partial_context
(context=0x4d471a0 <global_diagnostic_context>, t0=0x7ffff7402c60,
loc=2147483649) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:3852
#40 0x0000000000edf41d in print_instantiation_full_context (context=0x4d471a0
<global_diagnostic_context>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:3732
#41 0x0000000000edf993 in maybe_print_instantiation_context (context=0x4d471a0
<global_diagnostic_context>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:3869
#42 0x0000000000eddf2b in cp_diagnostic_starter (context=0x4d471a0
<global_diagnostic_context>, diagnostic=0x7fffffffbe90) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/error.cc:3559
#43 0x000000000352198b in diagnostic_report_diagnostic (context=0x4d471a0
<global_diagnostic_context>, diagnostic=0x7fffffffbe90) at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1607
#44 0x0000000003522102 in diagnostic_impl (richloc=0x7fffffffbf70,
metadata=0x0, opt=-1, gmsgid=0x39302e0 "explicit instantiation of %qD but no
definition available", ap=0x7fffffffbf58, kind=DK_PERMERROR) at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1770
#45 0x0000000003523434 in permerror (location=2147483649, gmsgid=0x39302e0
"explicit instantiation of %qD but no definition available") at
/home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:2037
#46 0x00000000010eb12c in instantiate_decl (d=<var_decl 0x7ffff7250d80 value>,
defer_ok=false, expl_inst_class_mem_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:27362
#47 0x0000000000ec2acd in maybe_instantiate_decl (decl=<var_decl 0x7ffff7250d80
value>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:5555
#48 0x0000000000ebee57 in decl_constant_var_p (decl=<var_decl 0x7ffff7250d80
value>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/decl2.cc:4569
#49 0x0000000000ef4a05 in constant_value_1 (decl=<var_decl 0x7ffff7250d80
value>, strict_p=true, return_aggregate_cst_ok_p=true, unshare_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/init.cc:2526
#50 0x0000000000ef4e59 in decl_really_constant_value (decl=<var_decl
0x7ffff7250d80 value>, unshare_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/init.cc:2617
#51 0x0000000000dced8b in cxx_eval_constant_expression (ctx=0x7fffffffc820,
t=<var_decl 0x7ffff7250d80 value>, lval=vc_prvalue,
non_constant_p=0x7fffffffc7a0, overflow_p=0x7fffffffc7a1, jump_target=0x0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:7216
#52 0x0000000000dd1261 in cxx_eval_constant_expression (ctx=0x7fffffffc820,
t=<nop_expr 0x7ffff740f3e0>, lval=vc_prvalue, non_constant_p=0x7fffffffc7a0,
overflow_p=0x7fffffffc7a1, jump_target=0x0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:7827
#53 0x0000000000dd4f51 in cxx_eval_outermost_constant_expr (t=<nop_expr
0x7ffff740f3e0>, allow_non_constant=true, strict=true,
manifestly_const_eval=mce_value::mce_true, constexpr_dtor=false, object=<tree
0x0>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8517
#54 0x0000000000dd60be in maybe_constant_value (t=<nop_expr 0x7ffff740f3e0>,
decl=<tree 0x0>, manifestly_const_eval=mce_value::mce_true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8806
#55 0x0000000000dd6736 in fold_non_dependent_expr (t=<nop_expr 0x7ffff740f3e0>,
complain=1, manifestly_const_eval=true, object=<tree 0x0>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/constexpr.cc:8945
#56 0x00000000011bf9c9 in check_narrowing (type=<integer_type 0x7ffff72655e8
int>, init=<nop_expr 0x7ffff740f3e0>, complain=1, const_only=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck2.cc:993
#57 0x0000000000d5a284 in convert_like_internal (convs=0x4dea380,
expr=<nop_expr 0x7ffff740f3e0>, fn=<tree 0x0>, argnum=0,
issue_conversion_warnings=true, c_cast_p=false, nested_p=false, complain=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8879
#58 0x0000000000d5a5ca in convert_like (convs=0x4dea380, expr=<var_decl
0x7ffff7250d80 value>, fn=<tree 0x0>, argnum=0, issue_conversion_warnings=true,
c_cast_p=false, nested_p=false, complain=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8944
#59 0x0000000000d5a63b in convert_like (convs=0x4dea380, expr=<var_decl
0x7ffff7250d80 value>, complain=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8959
#60 0x0000000000d4a9ee in build_converted_constant_expr_internal
(type=<integer_type 0x7ffff72655e8 int>, expr=<var_decl 0x7ffff7250d80 value>,
flags=5, complain=1) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:4808
#61 0x0000000000d4aa85 in build_converted_constant_expr (type=<integer_type
0x7ffff72655e8 int>, expr=<var_decl 0x7ffff7250d80 value>, complain=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:4838
---Type <return> to continue, or q <return> to quit---
#62 0x0000000001084794 in convert_nontype_argument (type=<integer_type
0x7ffff72655e8 int>, expr=<var_decl 0x7ffff7250d80 value>, complain=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:7414
#63 0x0000000001089897 in convert_template_argument (parm=<parm_decl
0x7ffff7ff6280>, arg=<var_decl 0x7ffff7250d80 value>, args=<tree_vec
0x7ffff740f3c0>, complain=1, i=0, in_decl=<template_decl 0x7ffff7ff6300
enable_if>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:8713
#64 0x000000000108b976 in coerce_template_parms (parms=<tree_vec
0x7ffff73e6bc0>, args=<tree_vec 0x7ffff740f3a0>, in_decl=<template_decl
0x7ffff7ff6300 enable_if>, complain=1, require_all_args=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9205
#65 0x000000000108e57f in lookup_template_class (d1=<identifier_node
0x7ffff74033c0 enable_if>, arglist=<tree_vec 0x7ffff740f3a0>,
in_decl=<parm_decl 0x7ffff7ff6600>, context=<tree 0x0>, entering_scope=1,
complain=1) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:9980
#66 0x00000000010a2e5c in tsubst_aggr_type_1 (t=<record_type 0x7ffff73f2738
enable_if>, args=<tree_vec 0x7ffff740f060>, complain=1, in_decl=<parm_decl
0x7ffff7ff6600>, entering_scope=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:14055
#67 0x00000000010a2ca5 in tsubst_aggr_type (t=<record_type 0x7ffff73f2738
enable_if>, args=<tree_vec 0x7ffff740f060>, complain=16385, in_decl=<parm_decl
0x7ffff7ff6600>, entering_scope=1) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:14019
#68 0x00000000010b3d52 in tsubst (t=<typename_type 0x7ffff73f27e0 type>,
args=<tree_vec 0x7ffff740f060>, complain=1, in_decl=<parm_decl 0x7ffff7ff6600>)
at /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:16589
#69 0x00000000010ac981 in tsubst_decl (t=<parm_decl 0x7ffff7ff6600>,
args=<tree_vec 0x7ffff740f060>, complain=1, use_spec_table=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:15010
#70 0x00000000010b0fa7 in tsubst (t=<parm_decl 0x7ffff7ff6600>, args=<tree_vec
0x7ffff740f060>, complain=1, in_decl=<parm_decl 0x7ffff7ff6600>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:15973
#71 0x00000000010ace3a in tsubst_decl (t=<parm_decl 0x7ffff7ff6580>,
args=<tree_vec 0x7ffff740f060>, complain=1, use_spec_table=true) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:15049
#72 0x00000000010e7577 in regenerate_decl_from_template (decl=<function_decl
0x7ffff740d500 __ct >, tmpl=<template_decl 0x7ffff7ff6780 __ct >,
args=<tree_vec 0x7ffff740f060>) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:26689
#73 0x00000000010e8ffd in instantiate_body (pattern=<template_decl
0x7ffff7ff6780 __ct >, args=<tree_vec 0x7ffff740f060>, d=<function_decl
0x7ffff740d500 __ct >, nested_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:27027
#74 0x00000000010eb1b9 in instantiate_decl (d=<function_decl 0x7ffff740d500
__ct >, defer_ok=false, expl_inst_class_mem_p=false) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:27379
#75 0x00000000010eb595 in instantiate_pending_templates (retries=0) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.cc:27457

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/111606] [11/12/13/14 Regression] [ICE] internal compiler error: error reporting routines re-entered.
  2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
                   ` (4 preceding siblings ...)
  2023-09-27 18:34 ` pinskia at gcc dot gnu.org
@ 2023-09-27 19:30 ` markus at oberhumer dot com
  5 siblings, 0 replies; 7+ messages in thread
From: markus at oberhumer dot com @ 2023-09-27 19:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111606

--- Comment #6 from Markus F.X.J. Oberhumer <markus at oberhumer dot com> ---
@Andrew Pinksi Many thanks for cleaning up the bug case!

cvise (https://github.com/marxin/cvise) did correctly reduce the original from
~50000 lines to 18 lines, but the result looked extremely strange...

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-27 19:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  6:33 [Bug c++/111606] New: [ICE] internal compiler error: error reporting routines re-entered markus at oberhumer dot com
2023-09-27  6:34 ` [Bug c++/111606] " markus at oberhumer dot com
2023-09-27 18:05 ` pinskia at gcc dot gnu.org
2023-09-27 18:08 ` [Bug c++/111606] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
2023-09-27 18:32 ` pinskia at gcc dot gnu.org
2023-09-27 18:34 ` pinskia at gcc dot gnu.org
2023-09-27 19:30 ` markus at oberhumer dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).