1 // PR c++/85028
2 
3 struct A;
4 
5 template < typename > struct B
6 {
7   B (int, A = A()) : f (0) {}  // { dg-error "incomplete type" }
8   int f;
9 };
10 
11 B < int > b (0);
12