aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@caviumnetworks.com>2010-03-19 15:52:41 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2010-03-19 15:52:41 -0700
commite49a760f33541c07a605bdbd64ca15c56e398b6c (patch)
treee9656d534c50302597e79125c358500a49c47f8f /gcc/c-decl.c
parentfdb2c6841da6ea02699c79ae63d80ffef3b140e8 (diff)
downloadgcc-e49a760f33541c07a605bdbd64ca15c56e398b6c.zip
gcc-e49a760f33541c07a605bdbd64ca15c56e398b6c.tar.gz
gcc-e49a760f33541c07a605bdbd64ca15c56e398b6c.tar.bz2
re PR c/43211 (ICE with incomplete type in function argument)
2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com> PR C/43211 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was an error. 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com> PR C/43211 * gcc.dg/pr43211.c: New test. * gcc.dg/pr18809-1.c: Don't expect an error when calling foo. From-SVN: r157585
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 87fb19a..fed04dc 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6118,6 +6118,7 @@ grokparms (struct c_arg_info *arg_info, bool funcdef_flag)
TREE_VALUE (typelt) = error_mark_node;
TREE_TYPE (parm) = error_mark_node;
+ arg_types = NULL_TREE;
}
else if (VOID_TYPE_P (type))
{
@@ -6138,6 +6139,7 @@ grokparms (struct c_arg_info *arg_info, bool funcdef_flag)
error (errmsg);
TREE_VALUE (typelt) = error_mark_node;
TREE_TYPE (parm) = error_mark_node;
+ arg_types = NULL_TREE;
}
if (DECL_NAME (parm) && TREE_USED (parm))