c++: Fix instantiation of imported temploid friends [PR114275]
[official-gcc.git] / gcc / testsuite / g++.dg / modules / tpl-friend-11_a.C
blobf29eebd1a7fb133ce3770cbdc880056be68b8d2b
1 // PR c++/114275
2 // { dg-additional-options "-fmodules-ts -Wno-global-module" }
3 // { dg-module-cmi M }
5 module;
7 template <typename... _Elements> struct T;
9 template <typename H> struct T<H> {
10   template <typename...> friend struct T;
13 export module M;
14 export template <typename=void> void fun() { T<int> t; }