https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114795
--- Comment #4 from porten at kde dot org --- Thanks for the reminder about the workaround. I had once seen it before trying module but did not see the relation when running into problems later. In the small test case, reordering the import and includes helps! It is just that the original code base exposes another problem. In fact, the original one I experienced: /opt/gcc-14/include/c++/14.0.1/format: In member function ‘auto std::__format::_Sink_iter<_CharT>::_M_reserve(std::size_t) const [with _CharT = char]’: /opt/gcc-14/include/c++/14.0.1/format:2632:7: error: invalid conversion in return statement 2632 | _M_reserve(size_t __n) const | ^~~~~~~~~~ <<< Unknown tree: template_type_parm >>> struct _Reservation return D.267932; /opt/gcc-14/include/c++/14.0.1/format:2632:7: internal compiler error: ‘verify_gimple’ failed 0x138b51e verify_gimple_in_seq(gimple*, bool) /home/porten/git/gcc/gcc/tree-cfg.cc:5318 [...] If of any interest, I can try to reduce a test case preserving the error.