URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Error: ICE on 2.7.2.3 and EGCS 1.0.0.
|
// Error: ICE on 2.7.2.3 and EGCS 1.0.0.
|
|
|
template
|
template
|
struct meta_max {
|
struct meta_max {
|
enum { max = (N1 > N2) ? N1 : N2 };
|
enum { max = (N1 > N2) ? N1 : N2 };
|
};
|
};
|
|
|
struct X {
|
struct X {
|
enum {
|
enum {
|
a = 0,
|
a = 0,
|
n = 0
|
n = 0
|
};
|
};
|
};
|
};
|
|
|
template
|
template
|
struct Y {
|
struct Y {
|
|
|
enum {
|
enum {
|
a = T1::a + T2::a + T3::a,
|
a = T1::a + T2::a + T3::a,
|
n = meta_max::max, T3::n>::max
|
n = meta_max::max, T3::n>::max
|
};
|
};
|
};
|
};
|
|
|
template
|
template
|
struct Z {
|
struct Z {
|
enum {
|
enum {
|
a = T::a,
|
a = T::a,
|
n = T::n
|
n = T::n
|
};
|
};
|
};
|
};
|
|
|
Z > z;
|
Z > z;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.