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++/19883
|
// PR c++/19883
|
|
|
template struct A
|
template struct A
|
{
|
{
|
static const T i = 1;
|
static const T i = 1;
|
char a[int(i)];
|
char a[int(i)];
|
};
|
};
|
|
|
template struct B {};
|
template struct B {};
|
|
|
template struct C
|
template struct C
|
{
|
{
|
static const T i = 2;
|
static const T i = 2;
|
B a;
|
B a;
|
};
|
};
|
|
|
template< typename T, T N >
|
template< typename T, T N >
|
struct integral_c
|
struct integral_c
|
{
|
{
|
static const T value = N;
|
static const T value = N;
|
|
|
typedef integral_c< T, static_cast((value + 1)) > next;
|
typedef integral_c< T, static_cast((value + 1)) > next;
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.