aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzesimir Nowak <qdlacz@gmail.com>2026-02-11 13:22:13 +0100
committerKrzesimir Nowak <qdlacz@gmail.com>2026-02-11 13:22:13 +0100
commit6cc6f06d4d29d681abc447825ed86018aae610ca (patch)
tree15e1c653a9ad2ad397cec7d26c4e2bb90af25023
parentae91b9b3693f1ee5b39f14e38a67af5f502bc829 (diff)
Stop silently ignoring unknown directives on an inline asm expression
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 360537ab7..0efe2714a 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -3130,6 +3130,8 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
} else {
dialect = InlineAsmDialect_Intel;
}
+ } else {
+ syntax_error(token, "Invalid directive on inline asm expression: '#%.*s'", LIT(token.string));
}
} else {
syntax_error(f->curr_token, "Expected an identifier after hash");