1//PR c++/28736 2 3template<void> struct A // { dg-error "not a valid type" } 4{ 5 template<typename> friend struct B; 6}; 7 8template<typename> struct B {}; 9 10B<int> b; 11