// PRMS Id: 4257 (second bug) // Bug: g++ fails to recognize multiple previous instantiations of a function // template. // Build don't link: // Special g++ Options: -fguiding-decls template class A { int i; friend int foo (A&); }; template int foo (A& a) { return a.i; } A a; A dummy; void bar () { foo (a); // gets bogus error - two foo(A&)'s }