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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend2.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Albert Chin 
4
//         Wolfgang Bangerth 
5
 
6
// PR c++/14513, unqualified lookup of friend class.
7
 
8
struct S {
9
    void test (void);
10
};
11
 
12
namespace NS {
13
  class X {
14
      friend class S;
15
      static int *i;    // { dg-error "private" }
16
  };
17
}
18
 
19
void S::test () {
20
  NS::X::i;             // { dg-error "this context" }
21
}

powered by: WebSVN 2.1.0

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