C++ Modules GCC 11已经支持
https://gcc.gnu.org/projects/cxx-status.html
C++23 features are available since GCC 11. To enable C++23 support, add the command-line parameter -std=c++2b to your g++ command line. Or, to enable GNU extensions in addition to C++23 features, add -std=gnu++2b.
https://www.mingw-w64.org/downloads/