// PR c++/114630 // { dg-additional-options "-fmodules-ts -Wno-global-module -fdump-lang-module" } // { dg-module-cmi M } module; template struct allocator { allocator() {} }; export module M; template class allocator; // allocator is reachable because the explicit instantiation is in purview. // { dg-final { scan-lang-dump {Wrote declaration[^\n]*allocator} module } }