Declaration problems

toon@moene.indiv.nluug.nl toon@moene.indiv.nluug.nl
Fri Dec 10 12:43:00 GMT 1999


Marilyn Celestin <marilyn@CAE.CA> wrote:

I have noticed a problem when I attempt to compile a certain file. I have an
include file which has the declaration of a variable as:

                Integer*2 size_businfo, max_businfo, max_dmc
                parameter (size_businfo = 15)
                parameter (max_businfo = 3500)
                parameter (max_dmc = 2)
                Integer*4 businfo(size_businfo*max_businfo*max_dmc)

When I compile the files in which this include file is used, I get the
following error: Array businfo is too large.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

When I try to compile the above as a standalone program (just adding END as
a last line) I get:

c.f: In program `MAIN__':
c.f:5: 
                   Integer*4 businfo(size_businfo*max_businfo*max_dmc)
                             ^
Zero-size array at (^)

Equally wrong, of course.

So this one also goes on the stack of g77-bugs-to-be-resolved.


Thanks for your bug report (AFAIK your contributions now are good for more
than 2/3rd of the g77 bugs, which makes you eligible for our Free Software GOLD 
card - OK, just kiddin' :-)

Cheers,
Toon Moene.


More information about the Gcc-bugs mailing list