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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend10.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/18681
2
// Bug: The friend declaration in A failed to give C::D access to A::B
3
// as specified in DR 45.
4
 
5
class A
6
{
7
  struct B;
8
  friend class C;
9
};
10
 
11
class C
12
{
13
  struct D
14
  {
15
    void f();
16
  };
17
};
18
 
19
void C::D::f()
20
{
21
  A::B* p;
22
}

powered by: WebSVN 2.1.0

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