[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / void2.C
blobeceb36219aa9ae57551288a2bf3adabca4be8b51
1 // PR c++/27496
2 // { dg-do compile }
4 template<int> struct A
6   template<void> friend class X;  // { dg-error "void|valid type" }
7 };
9 A<0> a;