From: Matthias Braun Date: Sat, 1 Nov 2008 17:12:31 +0000 (+0000) Subject: local labels should be fixed X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3a9986579239e51746945b3ba90be8343f38551b;p=cparser local labels should be fixed [r23354] --- diff --git a/parser.c b/parser.c index 447b358..db8a759 100644 --- 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 {