Commit ac83e1bb by Jason Merrill

(type_list_equal): If the types of the default arguments

        differ, the lists do not match.

From-SVN: r8015
parent d37f862e
...@@ -3059,7 +3059,9 @@ type_list_equal (l1, l2) ...@@ -3059,7 +3059,9 @@ type_list_equal (l1, l2)
int cmp = simple_cst_equal (TREE_PURPOSE (t1), TREE_PURPOSE (t2)); int cmp = simple_cst_equal (TREE_PURPOSE (t1), TREE_PURPOSE (t2));
if (cmp < 0) if (cmp < 0)
abort (); abort ();
if (cmp == 0) if (cmp == 0
|| TREE_TYPE (TREE_PURPOSE (t1))
!= TREE_TYPE (TREE_PURPOSE (t2)))
return 0; return 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment