summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-22 12:23:44 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-22 12:23:44 +0000
commite1d8e198a9737cefc4fb824eb6f07cffc4287964 (patch)
tree547ae1d3cc823f23a4ad7c698adf38bdd68ca751 /gcc/c-common.c
parentb4b63acbaca889500289ebf6d4d5b96d5813863a (diff)
downloadgcc-e1d8e198a9737cefc4fb824eb6f07cffc4287964.tar.gz
PR c/27420
* c-common.c (self_promoting_args_p): Skip erroneous args. * gcc.dg/func-args-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113976 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index ea8985f3dde..a27f5d36a24 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -3547,6 +3547,9 @@ self_promoting_args_p (tree parms)
{
tree type = TREE_VALUE (t);
+ if (type == error_mark_node)
+ continue;
+
if (TREE_CHAIN (t) == 0 && type != void_type_node)
return 0;