projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8ed26
)
Fix C/should_fail/init2.c: if there is no outer_type (error case), just go on.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 11 Sep 2009 11:33:57 +0000
(11:33 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 11 Sep 2009 11:33:57 +0000
(11:33 +0000)
[r26522]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/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) {