// PR c++/115231 // { dg-additional-options "-fmodules-ts -Wno-global-module" } // { dg-module-cmi M } module; template struct A { template A(U); }; template A(T) -> A; export module M; // Exporting a GMF entity should make the deduction guides reachable. export using ::A; export template struct B { template B(U); }; // Not exported, but should still be reachable by [temp.deduct.guide] p1. B(int) -> B; // Class-scope deduction guides should be reachable as well, even if // the class body was not exported. export template struct C; template struct C { template struct I { template I(V); }; I(int) -> I; template I(const P*) -> I

; };