#1057112 z80asm fails to accept the ?foo label test expression

Package:
z80asm
Source:
z80asm
Description:
assembler for the Zilog Z80 microprocessor
Submitter:
Heikki Kallasjoki
Date:
2023-11-30 00:51:04 UTC
Severity:
normal
Tags:
#1057112#5
Date:
2023-11-30 00:41:05 UTC
From:
To:
Dear Maintainer,

The 1.8-2 version of z80asm fails to accept the `? foo` label test
expression, despite being documented syntax in the man page.

An example test case:

  $ cat > test.z80
  if ?foo
  endif
  $ z80asm test.z80
  test.z80:1: error: using undefined label foo
  test.z80:1: error: expression expected (not )

Looking at the source, this seems to be a case of a missing `++*p;` in
the case handling the expression, and has been fixed upstream in the
following commit:

https://git.savannah.nongnu.org/cgit/z80asm.git/commit/?id=320cce79f8ec862fc5d750d05519113d741871b2

As far as I can determine, there have been no official upstream
releases as such, but if possible, it would still be convenient to
incorporate this fix in the Debian package as well.