blob: e05cc555707ee6eb9dec5a6bfe319f4c790566ff [file] [log] [blame]
// Origin: PR c++/35109
// { dg-do compile }
void foo()
{
struct A
{
friend class B;
};
B::B() {} // { dg-error "has not been declared" }
}