ascot diagnostics

A7408

Warning: Label ‘{label}’ is inside braces, where ascot does not follow labels, so the checks after it may be incomplete

IRIS takes a label inside a { } block as a label of the whole body, which the braces hide; ascot reads it where it stands, so its checks of the lines after the label may not match what IRIS runs. The routine compiles and runs as IRIS reads it: the warning is about ascot’s reading, and a label at the top level of the body is read alike by both.

IRIS compiles the example.

ROUTINE Demo.LabelInBlock
Main(count)
    If count > 0 {
Next //! A7408
        Write count, !
        Set count = count - 1
        If count > 0 Goto Next
        Quit
    }
    Quit

All diagnostics