From d9c2f28d8ca23867f292a952b0543807d35e672f Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 11 Sep 2009 11:33:57 +0000 Subject: [PATCH] Fix C/should_fail/init2.c: if there is no outer_type (error case), just go on. [r26522] --- parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.c b/parser.c index 8378e7e..d81e20f 100644 --- a/parser.c +++ b/parser.c @@ -2311,6 +2311,8 @@ finish_designator: if (type == NULL) { /* we are already outside, ... */ + if (outer_type == NULL) + goto error_parse_next; type_t *const outer_type_skip = skip_typeref(outer_type); if (is_type_compound(outer_type_skip) && !outer_type_skip->compound.compound->complete) { -- 2.20.1