(type_list_equal): If the types of the default arguments

differ, the lists do not match.

From-SVN: r8015
This commit is contained in:
Jason Merrill 1994-09-01 23:33:02 +00:00
parent d37f862e3f
commit ac83e1bb1c

View File

@ -3059,7 +3059,9 @@ type_list_equal (l1, l2)
int cmp = simple_cst_equal (TREE_PURPOSE (t1), TREE_PURPOSE (t2));
if (cmp < 0)
abort ();
if (cmp == 0)
if (cmp == 0
|| TREE_TYPE (TREE_PURPOSE (t1))
!= TREE_TYPE (TREE_PURPOSE (t2)))
return 0;
}
}