https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124485
--- Comment #2 from d7d1cd <d7d1cd at mail dot ru> --- I actually encountered ICE while trying to compile a large project I'm converting into modules. But when I tried to reduce the example to a test case, I found an error in the current ticket. I suspect the original ICE and the current error are related. Maybe this will help; the ICE output is: internal compiler error: Segmentation fault 4 | import helpers; | ^ 0x23857ef internal_error(char const*, ...) ../../gcc/diagnostic-global-context.cc:787 0x10a093f crash_signal ../../gcc/toplev.cc:325 0x8cd0ec module_state::read_diagnostic_classification(diagnostics::context*) ../../gcc/cp/module.cc:19276 0x8daf4e module_state::read_initial(cpp_reader*) ../../gcc/cp/module.cc:21286 0x8db0bb module_state::do_import(cpp_reader*, bool) ../../gcc/cp/module.cc:22433 0x8f4501 direct_import ../../gcc/cp/module.cc:22653 0x98528f cp_parser_translation_unit ../../gcc/cp/parser.cc:5561 0x98528f c_parse_file() ../../gcc/cp/parser.cc:57475 0xab77e1 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1426
