https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118826
--- Comment #2 from Luke <rarrum at gmail dot com> --- Created attachment 60466 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60466&action=edit Simpler Repro Layout Attached a simpler (still standalone) repro for the problem that doesn't require xmake. Simply run: gcc -v -save-temps -fmodules-ts *.cpp