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