URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/39413
|
// PR c++/39413
|
// We don't need to instantiate Wrapper to check the
|
// We don't need to instantiate Wrapper to check the
|
// foo(const Thingy&) overload.
|
// foo(const Thingy&) overload.
|
|
|
template struct Incomplete;
|
template struct Incomplete;
|
|
|
template class Wrapper
|
template class Wrapper
|
{
|
{
|
Incomplete i;
|
Incomplete i;
|
};
|
};
|
|
|
template struct Thingy
|
template struct Thingy
|
{
|
{
|
Thingy();
|
Thingy();
|
Thingy(const Wrapper& v);
|
Thingy(const Wrapper& v);
|
|
|
template void foo(const Thingy&);
|
template void foo(const Thingy&);
|
void foo(const Thingy&);
|
void foo(const Thingy&);
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
Thingy ap1;
|
Thingy ap1;
|
Thingy bp1;
|
Thingy bp1;
|
|
|
ap1.foo(bp1);
|
ap1.foo(bp1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.