From 6b0d7cb26c85627b7a60967c2bb4fe6612688774 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 11 Dec 2017 11:08:02 +0000 Subject: [PATCH] Fix issue #162 regarding empty unions --- src/check_type.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/check_type.cpp b/src/check_type.cpp index 5c9654a2d..1ecbb58d0 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -357,12 +357,6 @@ Array check_struct_fields(Checker *c, AstNode *node, Array } type = t_invalid; } - if (is_type_empty_union(type)) { - gbString str = type_to_string(type); - error(params[i], "Invalid use of an empty union '%s'", str); - gb_string_free(str); - type = t_invalid; - } bool is_using = (p->flags&FieldFlag_using) != 0;