https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107083
Bug ID: 107083 Summary: internal compiler error: in core_vals, at cp/module.cc:6127 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: karl.weber99 at gmx dot net Target Milestone: --- Created attachment 53639 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53639&action=edit Output of compiler due to option -freport-bug Environment: openSUSE 15.3 linux system. I downloaded fmt::format from https://github.com/fmtlib/fmt/ and tried to compile the header file fmt/core.h of this package with g++ -freport-bug -fmodules-ts -std=c++20 -c -x c++-system-header fmt/core.h The output of the compiler is /usr/local/include/fmt/core.h: internal compiler error: in core_vals, at cp/module.cc:6127 0x407d0d trees_out::core_vals(tree_node*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:6127 0x54143b trees_out::tree_node_vals(tree_node*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:7073 0x54143b trees_out::tree_value(tree_node*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:8910 0x53a43c trees_out::tree_node(tree_node*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:9108 0x53ddf5 trees_out::core_vals(tree_node*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:6036 0x53e460 trees_out::tree_node_vals(tree_node*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:7073 0x53f35b trees_out::decl_value(tree_node*, depset*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:7652 0x53f9f1 depset::hash::find_dependencies(module_state*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:13139 0x53ff86 module_state::write(elf_out*, cpp_reader*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:17629 0x541290 finish_module_processing(cpp_reader*) ../../gcc_12.2/gcc-12.2.0/gcc/cp/module.cc:19886 0x4ed14b c_parse_final_cleanups() ../../gcc_12.2/gcc-12.2.0/gcc/cp/decl2.cc:5342 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Preprocessed source stored into /tmp/cc9Z23Fg.out file, please attach this to your bugreport.