aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-05-22 12:23:44 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-05-22 12:23:44 +0000
commit694fea202c39e93f438c9f700e1dae4aa99028de (patch)
tree547ae1d3cc823f23a4ad7c698adf38bdd68ca751 /gcc/c-common.c
parent4271a6f36886a604cf9f39d85408b0a2dbe45ecd (diff)
downloadgcc-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.c3
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;