// PR c++/50344 // { dg-options "" } template class C { friend T; int i; }; struct S { int f() { C c; return c.i; } };