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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename16.C] - Diff between revs 305 and 519

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

Rev 305 Rev 519
// { dg-do link  }
// { dg-do link  }
// { dg-options "-Wno-deprecated" }
// { dg-options "-Wno-deprecated" }
struct B {
struct B {
  typedef int I;
  typedef int I;
};
};
template 
template 
struct D1 : public B {
struct D1 : public B {
};
};
template 
template 
struct D2 : public D1 {
struct D2 : public D1 {
  I i;  // { dg-error "" } not a type
  I i;  // { dg-error "" } not a type
};
};
template <>
template <>
struct D1 {
struct D1 {
  typedef double I;
  typedef double I;
};
};
template 
template 
void f(T);
void f(T);
template <>
template <>
void f(double) {}
void f(double) {}
int main()
int main()
{
{
  D2 d2i;
  D2 d2i;
  f(d2i.i); // { dg-error "" } no member i
  f(d2i.i); // { dg-error "" } no member i
}
}
 
 

powered by: WebSVN 2.1.0

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