summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-09-01 23:33:02 +0000
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-09-01 23:33:02 +0000
commit24e601b6dbe9322e71dd3f2478222ed5354ea4f7 (patch)
treedd4cb3fb47f59aee43adadda0dd5ab8b5e6a34b2 /gcc/tree.c
parent721b1ba9c658edb7f0a99133d96f81056025b9bb (diff)
downloadgcc-24e601b6dbe9322e71dd3f2478222ed5354ea4f7.tar.gz
(type_list_equal): If the types of the default arguments
differ, the lists do not match. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8015 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 7b8fb5182c6..95be3652745 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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;
}
}