Do not show typedefs, which were created for error correction, in the printed AST.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 30 Nov 2008 14:23:35 +0000 (14:23 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 30 Nov 2008 14:23:35 +0000 (14:23 +0000)
[r24160]

parser.c

index f52ce43..b381548 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3469,7 +3469,8 @@ static entity_t *create_error_entity(symbol_t *symbol, entity_kind_tag_t kind)
                entity->declaration.type     = type_error_type;
                entity->declaration.implicit = true;
        } else if (kind == ENTITY_TYPEDEF) {
-               entity->typedefe.type = type_error_type;
+               entity->typedefe.type    = type_error_type;
+               entity->typedefe.builtin = true;
        }
        record_entity(entity, false);
        return entity;