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

            Bug ID: 121226
           Summary: ICE in core_vals, at cp/module.cc:6641
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rohan at rohanlean dot de
  Target Milestone: ---

I have hit the following error with `-g -std=c++23 -flto=auto
-fno-fat-lto-objects`, but not with `-O3 -DNDEBUG -std=c++23 -flto=auto
-fno-fat-lto-objects`:

```
internal compiler error: in core_vals, at cp/module.cc:6641

0x248dd2f diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x249f15e internal_error(char const*, ...)
        ???:0
0x81e821 fancy_abort(char const*, int, char const*)
        ???:0
0x7d792b (anonymous namespace)::trees_out::tree_node_vals(tree_node*) [clone
.cold]
        ???:0
0x94d52d (anonymous namespace)::trees_out::tree_node(tree_node*)
        ???:0
0x950466 (anonymous namespace)::trees_out::tree_node_vals(tree_node*)
        ???:0
0x953240 (anonymous namespace)::trees_out::decl_value(tree_node*, depset*)
        ???:0
0x954733 depset::hash::find_dependencies(module_state*)
        ???:0
0x955957 module_state::write_begin(elf_out*, cpp_reader*, module_state_config&,
unsigned int&)
        ???:0
0x957105 finish_module_processing(cpp_reader*)
        ???:0
0x8eeadd c_parse_final_cleanups()
        ???:0
0xafe8a8 c_common_parse_file()

```

Reply via email to