PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend19.C
blob73883b2a05afdbfe5941e1bff28d0738129cc129
1 // { dg-do compile }
3 // Origin: Benjamin Li <benxbli@yahoo.com>
5 // PR c++/11030: Template substitution of friend class that is
6 // a specialization.
8 template <int S>
9 struct A
11   void func(void);
14 template <class T>
15 class C
17   static void private_func(void) {}
18 public:
19   friend class A<512>;
22 template <int S>
23 void A<S>::func(void)
25   C<void>::private_func();
28 template class A<512>;