diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-05-22 12:23:44 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-05-22 12:23:44 +0000 |
commit | 694fea202c39e93f438c9f700e1dae4aa99028de (patch) | |
tree | 547ae1d3cc823f23a4ad7c698adf38bdd68ca751 /gcc/c-common.c | |
parent | 4271a6f36886a604cf9f39d85408b0a2dbe45ecd (diff) | |
download | gcc-694fea202c39e93f438c9f700e1dae4aa99028de.zip gcc-694fea202c39e93f438c9f700e1dae4aa99028de.tar.gz gcc-694fea202c39e93f438c9f700e1dae4aa99028de.tar.bz2 |
re PR c/27420 (ICE on invalid function definition)
PR c/27420
* c-common.c (self_promoting_args_p): Skip erroneous args.
* gcc.dg/func-args-2.c: New test.
From-SVN: r113976
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index ea8985f3d..a27f5d3 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; |