Merge pull request #6257 from krnowak/krnowak/asm-unknown-directives

Stop silently ignoring unknown directives on an inline asm expression
This commit is contained in:
Jeroen van Rijn
2026-02-11 13:40:38 +01:00
committed by GitHub

View File

@@ -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");