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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend10.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// PR c++/18681
// PR c++/18681
// Bug: The friend declaration in A failed to give C::D access to A::B
// Bug: The friend declaration in A failed to give C::D access to A::B
// as specified in DR 45.
// as specified in DR 45.
class A
class A
{
{
  struct B;
  struct B;
  friend class C;
  friend class C;
};
};
class C
class C
{
{
  struct D
  struct D
  {
  {
    void f();
    void f();
  };
  };
};
};
void C::D::f()
void C::D::f()
{
{
  A::B* p;
  A::B* p;
}
}
 
 

powered by: WebSVN 2.1.0

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