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.0rc1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic74.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
// { dg-options "-std=gnu++0x" }
// { dg-options "-std=gnu++0x" }
template  class A
template  class A
{
{
public:
public:
  template  class X { /* ... */ }; // { dg-error "not a valid type for a template constant parameter" }
  template  class X { /* ... */ }; // { dg-error "not a valid type for a template constant parameter" }
};
};
template class B
template class B
{
{
public:
public:
  template  class X {
  template  class X {
    typename A::template X foo;
    typename A::template X foo;
  };
  };
};
};
int i;
int i;
float f;
float f;
A::X<&i, &f> apple1;
A::X<&i, &f> apple1;
B::X<&i, &f> banana1;
B::X<&i, &f> banana1;
A::X<&i> apple2; // { dg-error "wrong number of template arguments" }
A::X<&i> apple2; // { dg-error "wrong number of template arguments" }
// { dg-error "invalid type" "" { target *-*-* } 22 }
// { dg-error "invalid type" "" { target *-*-* } 22 }
A::X<&i, &f, &f> apple3; // { dg-error "wrong number of template arguments" }
A::X<&i, &f, &f> apple3; // { dg-error "wrong number of template arguments" }
// { dg-error "invalid type" "" { target *-*-* } 24 }
// { dg-error "invalid type" "" { target *-*-* } 24 }
A apple4;
A apple4;
 
 

powered by: WebSVN 2.1.0

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