1 2 3 4 5 6 7 8 9
//PR c++/28054 struct A; struct B { friend A : 2; // { dg-error "incomplete type" } };