// PR c++/8355 namespace Foo { template void foo();} struct Bar { friend void Foo::foo(); };