japheth - 2013-03-15

> Would it be possible to issue some warning in this case?

That wouldn't be masm-compatible. The difference of two local labels is a plain number, without type.

However, a possible workaround is:

mov rax, (type var) ptr [rbx + (var - delta)]

this syntax attaches type of label "var" to the expression.

Note that you'll need jwasm v2.10rc7 for this to work - there was a small bug that made this syntax not work in v2.10rc6.