// PR c++/118049 // { dg-additional-options "-fmodules -Wno-global-module" } // { dg-module-cmi B } module; template struct S { auto foo() {} }; template struct S; export module B; import A; template void x() { S{}.foo(); }