Fix #raw_union bug #306
This commit is contained in:
1 parent
542e524a87
commit
b1d0d82254
1 file changed
+3
@@ -327,6 +327,9 @@ void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast *node, Array<
|
|||||||
case_ast_node(f, ValueDecl, field);
|
case_ast_node(f, ValueDecl, field);
|
||||||
min_field_count += f->names.count;
|
min_field_count += f->names.count;
|
||||||
case_end;
|
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);
|
struct_type->Struct.names = make_names_field_for_struct(ctx, ctx->scope);
|
||||||
|
|||||||
Reference in new issue
Block a user