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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Build don't link:
2
//
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Raymond .
5
//
6
// PR c++/47  The parser failed to resolve 'B' in the return type of
7
// A::C::D::foo.
8
 
9
class A {
10
public:
11
  class B;
12
  class C;
13
};
14
 
15
class A::B {
16
};
17
 
18
class A::C {
19
  class D;
20
};
21
 
22
class A::C::D {
23
public:
24
  B* foo();
25
};

powered by: WebSVN 2.1.0

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