// RUN: clang-cc -fsyntax-only -verify %s template struct A { struct B { }; friend struct B; }; void f() { A::B b; } struct C0 { friend struct A; };