1// { dg-do compile } 2// 3// PR 3761 4 5struct A {}; 6 7struct B {}; 8 9template <class T> 10struct Foo : A, B 11{ 12 void func(void); 13 14 struct Nested 15 { 16 friend void Foo::func(void); 17 }; 18}; 19