URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.