https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99242
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- A curious reduction: $ cat 99242_a.H bool __is_constant_evaluated(); $ cat 99242_b.H bool __is_constant_evaluated(); $ cat 99242_c.H bool __is_constant_evaluated(); $ cat 99242_d.C bool __is_constant_evaluated(); import "99242_a.H"; void f() { __is_constant_evaluated(); } import "99242_b.H"; import "99242_c.H"; void g() { __is_constant_evaluated(); } $ g++ -fmodules-ts 99241_* 99242_d.C: In function ‘void g()’: 99242_d.C:6:12: internal compiler error: in lookup_mark, at cp/tree.cc:2474 6 | void g() { __is_constant_evaluated(); } | ^~~~~~~~~~~~~~~~~~~~~~~