From 28a8ca4f2ae64b78ecb931d0cb3735d86b0fe4dc Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 16 Sep 2008 17:54:43 +0000 Subject: [PATCH] Do not warn about excess initialisers, when trying to initialise an incomplete compound variable. [r22014] --- parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parser.c b/parser.c index 2e18543..c1449a0 100644 --- a/parser.c +++ b/parser.c @@ -2475,6 +2475,10 @@ finish_designator: if (type == NULL) { /* we are already outside, ... */ + if (is_type_compound(outer_type) && + !outer_type->compound.declaration->init.complete) { + goto error_parse_next; + } goto error_excess; } -- 2.20.1