diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-14 14:38:38 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-14 14:38:38 +0000 |
| commit | b1d0d822548dbd943719b8be70587b4157389cff (patch) | |
| tree | 245687fa3717043ede38f50bd99c15941460d3ef /src/check_type.cpp | |
| parent | 542e524a874ec1f17ea5cdcbebd9add030ab5551 (diff) | |
Fix #raw_union bug #306
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 886de99ee..33797ba27 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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); |