1 // PR c++/58650 2 3 struct A 4 { 5 friend int i = 0; // { dg-error "cannot be declared friend" } 6 }; 7