More specific error message when an expression is not constant because a symbol is undefined

This commit is contained in:
Rangi42
2025-08-24 22:02:41 -04:00
parent 8564df51e5
commit c578a7b761
8 changed files with 19 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
warning: Test #1: Compile-time constant [-Wuser]
at isconst.asm::test_expr(10) <- isconst.asm(14)
error: Expected constant expression: `UnknownLabel` is not constant at assembly time
error: Expected constant expression: undefined symbol `UnknownLabel`
at isconst.asm::test_expr(9) <- isconst.asm(15)
warning: Test #3: Compile-time constant [-Wuser]
at isconst.asm::test_expr(10) <- isconst.asm(21)