https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124485
Nathaniel Shead <nshead at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |nshead at gcc dot
gnu.org
Status|NEW |RESOLVED
--- Comment #4 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Fixed on trunk, thanks for the report!
(In reply to d7d1cd from comment #2)
> 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
This is a separate issue tracked in PR124466, I have a patch for this here
waiting review:
https://gcc.gnu.org/pipermail/gcc-patches/2026-March/710535.html