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