Fix #packed #all_or_none

This commit is contained in:
Krzesimir Nowak
2025-12-18 15:04:22 +01:00
parent 3567c64d7a
commit a5809d0185

View File

@@ -2803,7 +2803,7 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
}
is_packed = true;
} else if (tag.string == "all_or_none") {
if (is_packed) {
if (is_all_or_none) {
syntax_error(tag, "Duplicate struct tag '#%.*s'", LIT(tag.string));
}
is_all_or_none = true;