URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run }
|
// { dg-do run }
|
// PRMS Id: 2139
|
// PRMS Id: 2139
|
// Bug: g++ tries to instantiate the template with types on the function
|
// Bug: g++ tries to instantiate the template with types on the function
|
// obstack and fails.
|
// obstack and fails.
|
|
|
template
|
template
|
class X {
|
class X {
|
public:
|
public:
|
X(int) { }
|
X(int) { }
|
|
|
T x;
|
T x;
|
};
|
};
|
|
|
class A { };
|
class A { };
|
|
|
int main()
|
int main()
|
{
|
{
|
int i;
|
int i;
|
X xi(i);
|
X xi(i);
|
X xd(i);
|
X xd(i);
|
|
|
X fp0(i);
|
X fp0(i);
|
X fp1(i);
|
X fp1(i);
|
X fp2(i);
|
X fp2(i);
|
|
|
X mp0 (i);
|
X mp0 (i);
|
X mp1 (i);
|
X mp1 (i);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.