- when parsing compound types, do NOT destroy old declarations if
[cparser] / types.c
diff --git a/types.c b/types.c
index 1f06895..82bdd0b 100644 (file)
--- a/types.c
+++ b/types.c
@@ -91,9 +91,8 @@ type_t *type_unsigned_int64;
 
 void init_basic_types(void)
 {
-       static const type_base_t error = { TYPE_ERROR, TYPE_QUALIFIER_NONE,
-                                          TYPE_MODIFIER_NONE, 0, { NULL, 0 },
-                                          NULL };
+       static const type_base_t error = { TYPE_ERROR, { NULL, 0 }, 0, TYPE_QUALIFIER_NONE,
+                                          TYPE_MODIFIER_NONE, 0, NULL };
 
        type_error_type         = (type_t*)&error;
        type_signed_char        = make_atomic_type(ATOMIC_TYPE_SCHAR,       TYPE_QUALIFIER_NONE);