From b1d0d822548dbd943719b8be70587b4157389cff Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 14 Dec 2018 14:38:38 +0000 Subject: Fix #raw_union bug #306 --- src/check_type.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/check_type.cpp') 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); -- cgit v1.2.3