https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104503
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED CC| |jason at gcc dot gnu.org --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Egor Pugin from comment #0) > cat << EOF > 1.cpp > export module m; > import <bits/stdc++.h>; > EOF > cat << EOF > 2.cpp > import m; > int main(){} > EOF This doesn't work because <typeinfo> is never imported into 2.cpp. It's imported into 1.cpp, but not exported from module m. If you change the line in 1.cpp to export import <bits/stdc++.h>; then it works.