PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend47.C
blob612173950a7eaccf2736c01b2ec841df2f33ac83
1 // PR c++/19809
3 template<int i>
4 struct n{
5   friend void foo(){ }          // { dg-error "defin" }
6 };
8 int main(){
9   n<1> n1;
10   n<2> n2;