ascot diagnostics

A7217

Error: An offset cannot enter the procedure block at label ‘{label}’ (IRIS: )

Label+n names the line n lines after Label, and Label() { } is a procedure block, whose lines only the label itself enters. IRIS compiles the call and raises <NOLINE> when it runs. ascot flags every offset from a block’s label, including one large enough to land past its closing brace, which IRIS would run.

IRIS compiles the example, and Do Main^Demo.OffsetIntoBlock raises <NOLINE> when it runs.

ROUTINE Demo.OffsetIntoBlock
Main
    Do Report+1 //! A7217
    Quit
Report() public {
    Write "heading", !
    Write "details", !
    Quit
}

All diagnostics