OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [friend46.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.