https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99000
--- Comment #15 from d7d1cd <d7d1cd at mail dot ru> --- (In reply to Sergey Shumakov from comment #14) > This flag actually causes Godbolt to timeout. Godbolt is forcibly terminating the compilation because it is taking too long. (In reply to Sergey Shumakov from comment #14) > set(CMAKE_CXX_SCAN_FOR_MODULESON) to the rescue > (https://godbolt.org/z/Ee5bdM38c). Yet, this does not > compile with the original redefinition false positive. You didn't specify the --compile-std-module flag in the example. Furthermore, the CMAKE_CXX_SCAN_FOR_MODULES=ON option is enabled by default in CMake. Otherwise, a compilation error would occur: https://godbolt.org/z/o9YfKP5dK
