From 6cc6f06d4d29d681abc447825ed86018aae610ca Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 11 Feb 2026 13:22:13 +0100 Subject: [PATCH] Stop silently ignoring unknown directives on an inline asm expression --- src/parser.cpp | 2 ++ 1 file changed, 2 insertions(+) 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");