aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-12-21 20:21:24 +0000
committerGitHub <noreply@github.com>2025-12-21 20:21:24 +0000
commitce013acee779a9eb8976f31b956254e2101bce47 (patch)
tree05e575b714f00c3cc5337e48cd0a85df148c6ab5 /src/parser.cpp
parent987b0f11640d0e98430dba53dbd3c2677b0a654b (diff)
parenta5809d0185dfeb2473f2a3947459b889c4dd5098 (diff)
Merge pull request #6031 from krnowak/krnowak/packed-all-or-none
Fix #packed #all_or_none
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 06703d643..de5655ce1 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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;