https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98363
Bug ID: 98363 Summary: C++ 20 module ICE for fast_io library Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- g++ -c hello.cc -Ofast -std=c++20 -s -fmodules-ts -flto hello.cc module; #include<fast_io.h> export module hello; export inline void greeter (std::string_view name) noexcept { print(name); } cqwrteur@Home-Server:~/myhome/test_module$ g++ -c hello.cc -Ofast -std=c++20 -s -fmodules-ts -flto hello.cc:3:8: internal compiler error: Segmentation fault 3 | export module hello; | ^~~~~~ 0x10b2b4f crash_signal ../../gcc/gcc/toplev.c:327 0x9fe347 has_definition ../../gcc/gcc/cp/module.cc:11361 0xa104a7 depset::hash::make_dependency(tree_node*, depset::entity_kind) ../../gcc/gcc/cp/module.cc:12531 0xa10b84 depset::hash::add_dependency(tree_node*, depset::entity_kind) ../../gcc/gcc/cp/module.cc:12669 0xa17bda trees_out::decl_node(tree_node*, walk_kind) ../../gcc/gcc/cp/module.cc:8569 0xa18342 trees_out::tree_node(tree_node*) ../../gcc/gcc/cp/module.cc:9132 0xa1ac96 trees_out::tpl_parms_fini(tree_node*, unsigned int) ../../gcc/gcc/cp/module.cc:9888 0xa16603 trees_out::decl_value(tree_node*, depset*) ../../gcc/gcc/cp/module.cc:7742 0xa1e16b depset::hash::find_dependencies() ../../gcc/gcc/cp/module.cc:13181 0xa1e7c4 module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17550 0xa1fa55 finish_module_processing(cpp_reader*) ../../gcc/gcc/cp/module.cc:19728 0x9b41eb c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:5170 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.