ascot diagnostics

A7217

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

Do Report+1 calls the label Report at an offset, but Report() { } is a procedure block. The lines of a procedure block can be entered only through its label. IRIS compiles the call and raises <NOLINE> when it runs. ascot flags every offset from a block’s label, even one that lands past the closing brace, which IRIS would run. Call the label without the offset.

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