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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [typename1.C] - Blame information for rev 844

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// Bug: g++ forgets about the instantiation of class1 when looking up
3
// class11_value, and tries to look things up in class1.
4
 
5
template
6
struct class1 {
7
  struct class11 {
8
    typedef ItIsInt class11_value;
9
  };
10
};
11
 
12
template
13
struct class3 {
14
  int f();
15
};
16
 
17
template
18
int class3::f()
19
{
20
  return typename class1::class11::class11_value(10);
21
}
22
 
23
struct class2 {
24
  typedef int class2_value;
25
};
26
 
27
int main()
28
{
29
  class3 the_class3;
30
  the_class3.f();
31
}

powered by: WebSVN 2.1.0

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