// { dg-do assemble } // Copyright (C) 2000, 2002 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 17 Nov 2000 // bug 43. Two failings, bison parser ickiness caused us to find the member // named the same as a friend, and then when instantiating, we'd lookup in // the wrong scope. namespace X { template class P; template void operator- (const P&); template struct V { V (const T&); void operator- (); friend void X::operator-<> (const P& a); }; } int main() { X::V b(1.0); return 0; }