https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120771
James K. Lowden <jklowden at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |jklowden at gcc dot
gnu.org
CC| |jklowden at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2025-06-25
--- Comment #1 from James K. Lowden <jklowden at gcc dot gnu.org> ---
For the following input
$IF C-OBS-ARCH = "x86"
$if nested-missing = 7
77 something value "never".
$else
77 something value "hi".
$end
$ELSE
77 something value "bye".
$END
I see, with correct line numbers:
In file included from tbug.cbl:2:
blargh4.cpy:12:11: error: CDF error: no such variable 'C-OBS-ARCH'
12 | $IF C-OBS-ARCH = "x86"
| ^
blargh4.cpy:12:11: error: incommensurate comparison is FALSE: %ld = '%s'
blargh4.cpy:13:13: warning: CDF skipping: no such variable 'nested-missing'
(ignored)
13 | $if nested-missing = 7
| ^
blargh4.cpy:19:13: error: syntax error, unexpected NAME, expecting '.'
19 | 77 something value "bye".
| ^
cobol1: error: failed compiling tbug.cbl
Perhaps these messages now have the correct line numbers due to other pending
fixes for copybook line numbers.
> the same conditional is raising the same warning
The user's control is -fmax-error
> after gcobol reported it as a warning, it raises an error
Unable to reproduce, so far.