Do not record error entities of kind ENTITY_COMPOUND_MEMBER, because this would pollu...
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 11 Dec 2008 12:11:03 +0000 (12:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 11 Dec 2008 12:11:03 +0000 (12:11 +0000)
[r24521]

parser.c

index 995f182..ea2dc46 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3482,7 +3482,8 @@ static entity_t *create_error_entity(symbol_t *symbol, entity_kind_tag_t kind)
                entity->typedefe.type    = type_error_type;
                entity->typedefe.builtin = true;
        }
-       record_entity(entity, false);
+       if (kind != ENTITY_COMPOUND_MEMBER)
+               record_entity(entity, false);
        return entity;
 }