https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120804

--- Comment #3 from Simon Sobisch <simonsobisch at gnu dot org> ---
As noted: this is an extension (possibly from ACUCOBOL, supported in GnuCOBOL).
It _may_ compile (ideally only depending on the dialect).

It is definitely not supported by IBM compilers - but those yield a better
error message than the last GCC tested.

The biggest issue here was that it _was_ supported in GCC, but only for the "UP
BY n" part, not the "TO n" part; either both should have (possibly the same)
reasonable diagnostic or both should compile.

@Marty: is this improved now?

Reply via email to