Declaration problems

Marilyn Celestin marilyn@CAE.CA
Fri Dec 10 12:27:00 GMT 1999

Good Afternoon,

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 =3D 15)
		parameter (max_businfo =3D 3500)
		parameter (max_dmc =3D 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.

However, if I change the declaration to integer*4 businfo(15*3500*2). =
compiles with no errors.

Could you advise?
Thank you in advance.


PS: Here is the output of the g77 -v=20

g77 version 2.95.1 19990816 (release) (from FSF-g77 version 0.5.25 =
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from =
gcc version 2.95.1 19990816 (release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/cpp -lang-c -v =
-D__GNUC_MINOR__=3D95 -D__ELF__ -D__unix__ -D__i386__ -D__linux__ =
-D__linux -Asystem(posix) -D_LANGUAGE_FORTRAN -traditional -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686
-D__i686__ -D__pentiumpro -D__pentiumpro__ /dev/null /dev/null
GNU CPP version 2.95.1 19990816 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The following default directories have been omitted from the search =
End of omitted list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/f771 -fnull-version =
-dumpbase g77-version.f -version -fversion -o /tmp/cc4qvA4t.s /dev/null
GNU F77 version 2.95.1 19990816 (release) (i686-pc-linux-gnu) compiled =
GNU C version 2.95.1 19990816 (release).
GNU Fortran Front End version 0.5.25 19990816 (release)
 /usr/local/i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccOeibcN.o
GNU assembler version 2.9.1 (i686-pc-linux-gnu), using BFD version
 /usr/local/i686-pc-linux-gnu/bin/ld -m elf_i386 -dynamic-linker
/lib/ -o /tmp/ccsLhS55 /tmp/ccOeibcN.o /usr/lib/crt1.o
/usr/lib/crti.o =
-L/usr/local/i686-pc-linux-gnu/lib -L/usr/local/lib -lg2c -lm -lgcc -lc
-lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/crtend.o
__G77_LIBF77_VERSION__: 0.5.25 19990816 (release)
@(#)LIBF77 VERSION 19990503
__G77_LIBI77_VERSION__: 0.5.25 19990816 (release)
@(#) LIBI77 VERSION pjw,dmg-mods 19990503
__G77_LIBU77_VERSION__: 0.5.25 19990816 (release)
@(#) LIBU77 VERSION 19980709

Marilyn C=E9lestin                                              =20
Y2k Update                                                    =20
CAE Electronics Ltd.                                             =20
Dept: Computer System Engineering (73)          =20
Tel.: (514) 341-6780 (2348)                               =20
email:                                     =20

More information about the Gcc-bugs mailing list