[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-GnuCOBOL] [Bugs] Redefining a redefinition and misleading error
From: |
Martin Ward |
Subject: |
Re: [Bug-GnuCOBOL] [Bugs] Redefining a redefinition and misleading error message |
Date: |
Tue, 3 Jul 2018 22:35:15 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 03/07/2018 21:41, Ron Norman wrote:
> Are you using -std=ibm ?
No. I guessed that the compiler was just being picky.
The misleading error message is:
zzz.cbl: 22: error: size of 'BAR' larger than size of 'FOO'
when it is not!
On 03/07/2018 21:39, Simon Sobisch wrote:
> The second message is obviously wrong, I guess the definition for
> BAR-DEF-1 is internally deleted because of the previous error, leaving
> the definition at 1450 vs 725 original bytes.
Note that deleting UID1 (the definition after BAR-DEF-1)
gets rid of the error about different sizes: so it is not
as simple as deleting the BAR-DEF-1 line.
It would be useful to include the sizes on the second error:
zzz.cbl: 22: error: size of 'BAR' (nnn) larger than 'FOO' (mmm)
Then we would also know what it *thinks* the size of BAR is!
--
Martin
Dr Martin Ward | Email: address@hidden | http://www.gkc.org.uk
G.K.Chesterton site: http://www.gkc.org.uk/gkc | Erdos number: 4