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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/35109
2
 
3
struct C;
4
void f() {
5
  struct A {
6
    friend struct B;
7
    friend struct C;
8
    void g()
9
    {
10
      B *b;                     // { dg-error "not declared" }
11
      C* c;                     // OK, finds ::C
12
    }
13
  };
14
  C *c; // OK, finds ::C
15
  struct B {};
16
  B *b; // OK, now it isn't hidden
17
}

powered by: WebSVN 2.1.0

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