https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104924
--- Comment #2 from Lorenzo Gomez <yunior.eury at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > C++ modules in GCC 11 (and it looks like 12 but some bugs have been fixed > there) is still considered experimental and your mileage on this feature > will varry. > > Note I have not checked to see if this has been fixed on the trunk for GCC > 12. This is a good point! I will try with GCC12 and check if this issue has been fixed whenever I get time. Thanks!