https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100134
--- Comment #6 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107045#c1 for a minimal reproducer: Minimal: https://godbolt.org/z/hxrPvPPhs. ```C++ namespace std { template<class> struct X { friend void f(); }; } ``` ```C++ export module mod; import "std.hpp"; export std::X<int> v; ```