mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-15 02:52:38 +00:00
Fix #packed #all_or_none
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user