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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [inherit4.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/21008, DR 515
2
 
3
struct A {
4
  int foo_;
5
};
6
template  struct B: public A { };
7
template  struct C: B {
8
  int foo() {
9
    return A::foo_;  // #1
10
  }
11
};
12
int f(C* p) {
13
  return p->foo();
14
}

powered by: WebSVN 2.1.0

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