projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f1f93d
)
Compound types are incomplete until the }.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Nov 2008 10:34:26 +0000
(10:34 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Nov 2008 10:34:26 +0000
(10:34 +0000)
[r23721]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
d4f54fb
..
4b61108
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-3006,8
+3006,6
@@
static compound_t *parse_compound_type_specifier(bool is_struct)
}
if (token.type == '{') {
- compound->complete = true;
-
parse_compound_type_entries(compound);
modifiers |= parse_attributes(&attributes);
}
@@
-6199,6
+6197,9
@@
static void parse_compound_type_entries(compound_t *compound)
semantic_compound(compound);
rem_anchor_token('}');
next_token();
+
+ /* ยง6.7.2.1:7 */
+ compound->complete = true;
}
static type_t *parse_typename(void)