From 7d34e55a71b1d929c6e847337a3639f3e65a547e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 27 Aug 2019 10:45:15 -0400 Subject: add a TODO compile error for union field alignment syntax See #3125 --- src/analyze.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 247788b949..dde6e3defc 100644 --- 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) { -- cgit v1.2.3