summaryrefslogtreecommitdiffstats
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-22 00:12:27 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-22 00:12:27 +0000
commitd487ebe83e58c90eebd6954a115ffbcc15e801d7 (patch)
treef348632e87f513c7bb02c0c5ae86c24ea148a860 /gcc/c-typeck.c
parentac0193d16b13cd446fa9c280ddc9f2e8517c5d74 (diff)
downloadppe42-gcc-d487ebe83e58c90eebd6954a115ffbcc15e801d7.tar.gz
ppe42-gcc-d487ebe83e58c90eebd6954a115ffbcc15e801d7.zip
PR c/18809
* c-typeck.c (convert_arguments): Check for error_mark_node. * gcc.dg/pr18809-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index a4e4bc9df26..237afadedf4 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -2067,7 +2067,7 @@ convert_arguments (tree typelist, tree values, tree function, tree fundecl)
/* Formal parm type is specified by a function prototype. */
tree parmval;
- if (!COMPLETE_TYPE_P (type))
+ if (type == error_mark_node || !COMPLETE_TYPE_P (type))
{
error ("type of formal parameter %d is incomplete", parmnum + 1);
parmval = val;
OpenPOWER on IntegriCloud