URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do run }
|
// { dg-do run }
|
// PRMS Id: 1502
|
// PRMS Id: 1502
|
// Bug: g++ fails to resolve 'gnc' in the call to 'grid'.
|
// Bug: g++ fails to resolve 'gnc' in the call to 'grid'.
|
|
|
template class foo {
|
template class foo {
|
public:
|
public:
|
foo() { }
|
foo() { }
|
};
|
};
|
|
|
template class bar : public foo {
|
template class bar : public foo {
|
public:
|
public:
|
bar() : foo() {}
|
bar() : foo() {}
|
};
|
};
|
|
|
template class ben : public foo {
|
template class ben : public foo {
|
public:
|
public:
|
ben() : foo() {}
|
ben() : foo() {}
|
void grid(T (*f)(bar&),bar& x,bar& y,bar& param);
|
void grid(T (*f)(bar&),bar& x,bar& y,bar& param);
|
};
|
};
|
|
|
template void ben::grid(T (*f)(bar&),bar& x,bar& y,bar& param) { }
|
template void ben::grid(T (*f)(bar&),bar& x,bar& y,bar& param) { }
|
|
|
template T gnc(bar& a)
|
template T gnc(bar& a)
|
{
|
{
|
return 0;
|
return 0;
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
ben a;
|
ben a;
|
bar x,y,p;
|
bar x,y,p;
|
a.grid(gnc,x,y,p);
|
a.grid(gnc,x,y,p);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.