Arrays of a header type with a symbolic size misparse #60

Closed
opened 2026-10-08 18:43:16 +02:00 by alex-eg · 1 comment
Owner

(workers [pthread-t MAX_WORKERS]) emits pthread_t MAX_WORKERS workers[];, reading MAX_WORKERS as a second type word. [u16 CHUNK_AREA] works, presumably because u16 is known to Sex and
pthread_t only to C. A literal size, [pthread-t 32], works.


Found with sexc dfafe8b while building vs-map-viewer (from its Sex-field-notes.org).

`(workers [pthread-t MAX_WORKERS])` emits `pthread_t MAX_WORKERS workers[];`, reading `MAX_WORKERS` as a second type word. `[u16 CHUNK_AREA]` works, presumably because `u16` is known to Sex and `pthread_t` only to C. A literal size, `[pthread-t 32]`, works. --- Found with sexc `dfafe8b` while building vs-map-viewer (from its `Sex-field-notes.org`).
alex-eg added the bug label 2026-10-08 18:43:16 +02:00
Author
Owner

Fixed by dfdca46.

Fixed by dfdca46.
Sign in to join this conversation.