Fix C/should_fail/init2.c: if there is no outer_type (error case), just go on.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 11 Sep 2009 11:33:57 +0000 (11:33 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 11 Sep 2009 11:33:57 +0000 (11:33 +0000)
[r26522]

parser.c

index 8378e7e..d81e20f 100644 (file)
--- 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) {