// PR c++/114275 // { dg-additional-options "-fmodules-ts -Wno-global-module" } // { dg-module-cmi M } module; template struct T; template struct T { template friend struct T; }; export module M; export template void fun() { T t; }