URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
template
|
template
|
struct A {
|
struct A {
|
};
|
};
|
|
|
template
|
template
|
struct B {
|
struct B {
|
operator A<3> ();
|
operator A<3> ();
|
operator B<3, 7> ();
|
operator B<3, 7> ();
|
};
|
};
|
|
|
|
|
template
|
template
|
void f(B);
|
void f(B);
|
|
|
template
|
template
|
void f(A)
|
void f(A)
|
{
|
{
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
// Deduction fails with the first `f'. Since `3' is explicitly
|
// Deduction fails with the first `f'. Since `3' is explicitly
|
// specified, we don't try any deduction with the second `f'. So,
|
// specified, we don't try any deduction with the second `f'. So,
|
// we call the second `f'.
|
// we call the second `f'.
|
f<3>(B<2, 7>());
|
f<3>(B<2, 7>());
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.