zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 7d34e55a71b1d929c6e847337a3639f3e65a547e (tree)
parent ffac0b02e75c9c620df11201ee70965856ba9ebf
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 27 Aug 2019 10:45:15 -0400

add a TODO compile error for union field alignment syntax

See #3125

Diffstat:
Msrc/analyze.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/analyze.cpp b/src/analyze.cpp @@ -1965,6 +1965,8 @@ static Error resolve_union_alignment(CodeGen *g, ZigType *union_type) { union_type->data.unionation.resolve_status = ResolveStatusInvalid; return err; } + add_node_error(g, field->decl_node, + buf_create_from_str("TODO implement field alignment syntax for unions. https://github.com/ziglang/zig/issues/3125")); } else if (packed) { field->align = 1; } else if (field->type_entry != nullptr) {