URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 693 |
Rev 783 |
// PR c++/33553
|
// PR c++/33553
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
template struct S { static const int sz = 2; };
|
template struct S { static const int sz = 2; };
|
template struct U { enum { sz = 2 }; };
|
template struct U { enum { sz = 2 }; };
|
|
|
template
|
template
|
struct P
|
struct P
|
{
|
{
|
template void bar (int (&x)[S::sz]);
|
template void bar (int (&x)[S::sz]);
|
template void baz (int (&x)[U::sz]);
|
template void baz (int (&x)[U::sz]);
|
};
|
};
|
|
|
P p;
|
P p;
|
|
|
void
|
void
|
foo (void)
|
foo (void)
|
{
|
{
|
int x[2];
|
int x[2];
|
p.bar (x);
|
p.bar (x);
|
p.baz (x);
|
p.baz (x);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.