1 // PR c++/43076
2 
3 struct S;
4 template < typename > struct T
5 {
6   template < typename >
7   template < bool > struct T < S > // { dg-error "" }
8   {
9     void f () { // { dg-error "expected" }
10