You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: patch fypp to emit resync linemarker after single-line $: calls
Single-line $:GPU_PARALLEL_LOOP() and similar macros expand to
leaving the next Fortran statement attributed to the macro call-site
line rather than the following source line. This causes off-by-1
errors in all backtraces, compiler error messages, and debugger line
info for every GPU-macro-wrapped loop body in the codebase (~2188
affected call sites).
Root cause: fypp's _postprocess_eval_line only emits a trailing
resync linemarker when the $: call spans >1 source lines (multiline)
or when line-folding splits output (unsync). Single-line calls that
produce multi-line output hit neither condition.
Fix: always emit the resync marker after any $: call that ends its
line. Implemented as a patch applied to the installed fypp.py after
venv setup in toolchain/bootstrap/python.sh, with a sentinel check
so it is idempotent across reinstalls.
0 commit comments