URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [template30.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
template <class T, class U>
int func(U, T); // { dg-error "" } ref below
template <class T, class U>
int func(T, U) // { dg-error "" } ref below
{
return 2;
}
int main ()
{
func (0, 1); // { dg-error "" } ambiguous
}