projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f701d11
)
local labels should be fixed
author
Matthias Braun
<matze@braunis.de>
Sat, 1 Nov 2008 17:12:31 +0000
(17:12 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sat, 1 Nov 2008 17:12:31 +0000
(17:12 +0000)
[r23354]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
447b358
..
db8a759
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-10136,7
+10136,7
@@
static statement_t *parse_local_label_declaration(void)
}
symbol_t *symbol = token.v.symbol;
entity_t *entity = get_entity(symbol, NAMESPACE_LOCAL_LABEL);
- if (entity != NULL) {
+ if (entity != NULL
&& entity->base.parent_scope == scope
) {
errorf(HERE, "multiple definitions of '__label__ %Y' (previous definition %P)",
symbol, &entity->base.source_position);
} else {