8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/template30.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

14 lines
220 B
C

template <class T, class U>
int func(U, T); // ERROR - ref below
template <class T, class U>
int func(T, U)
{ // ERROR - ref below
return 2;
}
int main ()
{
func (0, 1); // ERROR - ambiguous
}