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