nx_probe_castidx_live.nx
buildroot/runtime/nx_probe_castidx_live.nx
about
nx_probe_castidx_live.nx -- WITNESS for the paren-primary postfix chain (parse_primary TK_LPAREN).
TRAP (documented 2026-08-07, fixed 2026-08-13): indexing an INLINE-CAST string literal
`("lit" as *u8)[j]` compiled clean and never compared equal -- the pending `[` silently
terminated the expression, the pointer landed truncated in the receiver (measured 213 = addr&0xFF),
and in an if-condition the leftover `[` desynced the parser (kind=47 at expression start).
REPRO (pre-fix): build+run this -> exit 1/2/3 or COMPILE-FAIL; post-fix -> builds AND exits 0.
exit 0 = correct; 1 = inline-cast index disagrees with hoisted index; 2 = hoisted form wrong; 3 = if-condition shape wrong.
dependencies 0 imports · 0 importers
imports: none
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 8 | func main(argc: i64, argv: *u8) -> i64 |