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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [nested3.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
template 
2
class A {
3
  template 
4
  class SubA {
5
    int _k;
6
  };
7
  T1 _t1;
8
  T2 _t2;
9
};
10
 
11
template 
12
class B {
13
  class SubB1 {
14
    B _i;
15
  };
16
 
17
  class SubB2 {
18
    int _j;
19
  };
20
  A::SubA _a; // { dg-error "not a base type" "not base" }
21
                // { dg-message "note" "note" { target *-*-* } 20 }
22
                // { dg-error "non-template" "non-template" { target *-*-* } 20 }
23
};
24
 
25
 
26
int main() {
27
  B objB;
28
 
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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