| ... | @@ -1965,6 +1965,8 @@ static Error resolve_union_alignment(CodeGen *g, ZigType *union_type) { | ... | @@ -1965,6 +1965,8 @@ static Error resolve_union_alignment(CodeGen *g, ZigType *union_type) { |
| 1965 | union_type->data.unionation.resolve_status = ResolveStatusInvalid; | 1965 | union_type->data.unionation.resolve_status = ResolveStatusInvalid; |
| 1966 | return err; | 1966 | return err; |
| 1967 | } | 1967 | } |
| | 1968 | add_node_error(g, field->decl_node, |
| | 1969 | buf_create_from_str("TODO implement field alignment syntax for unions. https://github.com/ziglang/zig/issues/3125")); |
| 1968 | } else if (packed) { | 1970 | } else if (packed) { |
| 1969 | field->align = 1; | 1971 | field->align = 1; |
| 1970 | } else if (field->type_entry != nullptr) { | 1972 | } else if (field->type_entry != nullptr) { |