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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [ttp64.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
// Origin: David Margery 
// Origin: David Margery 
// Bug: We fail to set DECL_TEMPLATE_PARM_P when reducing template
// Bug: We fail to set DECL_TEMPLATE_PARM_P when reducing template
// parameter level.
// parameter level.
template  class A2 {
template  class A2 {
public:
public:
   A2() {}
   A2() {}
   virtual ~A2() {}
   virtual ~A2() {}
   template  A2 & operator=(const A2 o) {
   template  A2 & operator=(const A2 o) {
      i=o.i;
      i=o.i;
      return *this;
      return *this;
   }
   }
   T i;
   T i;
   T j;
   T j;
};
};
template  class A1 {
template  class A1 {
public:
public:
   A1() {}
   A1() {}
   virtual ~A1() {}
   virtual ~A1() {}
   template  A1 & operator=(const A1 o) {
   template  A1 & operator=(const A1 o) {
      i=o.i;
      i=o.i;
      return *this;
      return *this;
   }
   }
   template  A1 & operator=(const A2 o) {
   template  A1 & operator=(const A2 o) {
      i=o.i;
      i=o.i;
      return *this;
      return *this;
   }
   }
   T i;
   T i;
};
};
template