URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
template
|
template
|
struct S
|
struct S
|
{
|
{
|
typedef T S_Type;
|
typedef T S_Type;
|
};
|
};
|
|
|
|
|
template
|
template
|
void foo(typename S::S_Type)
|
void foo(typename S::S_Type)
|
{
|
{
|
}
|
}
|
|
|
|
|
template
|
template
|
void foo(T)
|
void foo(T)
|
{
|
{
|
}
|
}
|
|
|
|
|
struct S2 {};
|
struct S2 {};
|
|
|
void bar()
|
void bar()
|
{
|
{
|
foo(S2()); // We can't unify with the first foo, so we get the second.
|
foo(S2()); // We can't unify with the first foo, so we get the second.
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.