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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [ttp64.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
// Origin: David Margery 
4
 
5
// Bug: We fail to set DECL_TEMPLATE_PARM_P when reducing template
6
// parameter level.
7
 
8
template  class A2 {
9
public:
10
   A2() {}
11
   virtual ~A2() {}
12
   template  A2 & operator=(const A2 o) {
13
      i=o.i;
14
      return *this;
15
   }
16
   T i;
17
   T j;
18
};
19
 
20
template  class A1 {
21
public:
22
   A1() {}
23
   virtual ~A1() {}
24
   template  A1 & operator=(const A1 o) {
25
      i=o.i;
26
      return *this;
27
   }
28
   template  A1 & operator=(const A2 o) {
29
      i=o.i;
30
      return *this;
31
   }
32
   T i;
33
};
34
 
35
template