diff options
author | Jason Merrill <merrill@gnu.org> | 1994-09-01 23:33:02 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1994-09-01 23:33:02 +0000 |
commit | ac83e1bb1c764477e399672ca27e7ff0ec1fb736 (patch) | |
tree | dd4cb3fb47f59aee43adadda0dd5ab8b5e6a34b2 | |
parent | d37f862e3f9a9e4d4bb3e8ee56f358fb899c09b7 (diff) | |
download | gcc-ac83e1bb1c764477e399672ca27e7ff0ec1fb736.zip gcc-ac83e1bb1c764477e399672ca27e7ff0ec1fb736.tar.gz gcc-ac83e1bb1c764477e399672ca27e7ff0ec1fb736.tar.bz2 |
(type_list_equal): If the types of the default arguments
differ, the lists do not match.
From-SVN: r8015
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } } |