1 // PR c++/27496 2 // { dg-do compile } 3 4 template<int> struct A 5 { 6 template<void> friend class X; // { dg-error "void|valid type" } 7 }; 8 9 A<0> a; 10