URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/32674
|
// PR c++/32674
|
|
|
class C
|
class C
|
{
|
{
|
static const int j = 3;
|
static const int j = 3;
|
};
|
};
|
|
|
template class A
|
template class A
|
{
|
{
|
static const int i1;
|
static const int i1;
|
static const int i2;
|
static const int i2;
|
static const int i3;
|
static const int i3;
|
static const int i4;
|
static const int i4;
|
};
|
};
|
|
|
template const int A::i1(C::j);
|
template const int A::i1(C::j);
|
template const int A::i2 = C::j;
|
template const int A::i2 = C::j;
|
template const int A::i3(C::j, 5); // { dg-error "compound expression" }
|
template const int A::i3(C::j, 5); // { dg-error "compound expression" }
|
template const int A::i4 = (C::j, 7);
|
template const int A::i4 = (C::j, 7);
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.