mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 14:54:52 -04:00
Fix #packed #all_or_none
This commit is contained in:
1 parent
3567c64d7a
commit
a5809d0185
1 file changed
+1
-1
+1
-1
@@ -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