URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR c++/11987
|
// PR c++/11987
|
|
|
template struct X {
|
template struct X {
|
struct I { I(); };
|
struct I { I(); };
|
};
|
};
|
|
|
template struct Y : X {
|
template struct Y : X {
|
typedef typename X::I I;
|
typedef typename X::I I;
|
};
|
};
|
|
|
// note: I is nested type in X, not Y!
|
// note: I is nested type in X, not Y!
|
template
|
template
|
Y::I::I () {} // { dg-error "dependent typedef" }
|
Y::I::I () {} // { dg-error "dependent typedef" }
|
// { dg-error "no type|dependent type" "" { target *-*-* } 13 }
|
// { dg-error "no type|dependent type" "" { target *-*-* } 13 }
|
|
|
template struct Y<1>;
|
template struct Y<1>;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.