Fix #raw_union bug #306

This commit is contained in:
gingerBill
2018-12-14 14:38:38 +00:00
parent 542e524a87
commit b1d0d82254
+3
View File
@@ -327,6 +327,9 @@ void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast *node, Array<
case_ast_node(f, ValueDecl, field);
min_field_count += f->names.count;
case_end;
case_ast_node(f, Field, field);
min_field_count += f->names.count;
case_end;
}
}
struct_type->Struct.names = make_names_field_for_struct(ctx, ctx->scope);