URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR c++/250 */
|
/* PR c++/250 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
template void Bar(T *p)
|
template void Bar(T *p)
|
{
|
{
|
}
|
}
|
|
|
template class Foo
|
template class Foo
|
{
|
{
|
public:
|
public:
|
Foo(T *p) { Bar(p); }
|
Foo(T *p) { Bar(p); }
|
// The global scope operator wasn't respected in this case under gcc 3.0
|
// The global scope operator wasn't respected in this case under gcc 3.0
|
void Bar(T *p) { ::Bar(p); }
|
void Bar(T *p) { ::Bar(p); }
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
double* d;
|
double* d;
|
Foo f(d);
|
Foo f(d);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.