This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
This is to report a possible bug found in g77.
The source file:
dimension a(250000,250000)
a(1,1)= 0.
write(*,*) ' a',a(1,1)
end
The output:
$ /usr/bin/g77 source.f
$ ./a.out
a
$
I think there is a bug because the output was 'a' instead of ' a 0.'
(When I use 'dimension a(40000,40000)' the compiler gives instead
dimension a(40000,40000)
^
Array `a' at (^) is too large to handle
)
I am using RedHat 7.2. In addition g77 -v gave
g77 version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) (from FSF-g77
version 0.5.26 20000731 (Red Hat Linux 7.1 2.96-98))
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
/usr/lib/gcc-lib/i386-redhat-linux/2.96/tradcpp0 -lang-fortran -v
-D__GNUC__=2
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux
-D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix)
-D__NO_INLINE__ -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__tune_i386__ /dev/null /dev/null
GNU traditional CPP version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
/usr/lib/gcc-lib/i386-redhat-linux/2.96/f771 -fnull-version -quiet
-dumpbase g77-version.f -version -fversion -o /tmp/cc29Sveg.s /dev/null
GNU F77 version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
(i386-redhat-linux) compiled by GNU C version 2.96 20000731 (Red Hat Linux
7.1 2.96-98).
GNU Fortran Front End version 0.5.26 20000731 (Red Hat Linux 7.1 2.96-98)
as -V -Qy -o /tmp/ccoTRfxp.o /tmp/cc29Sveg.s
GNU assembler version 2.11.90.0.8 (i386-redhat-linux) using BFD version
2.11.90.0.8
ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o /tmp/ccCU7G0x
/tmp/ccoTRfxp.o /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crti.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/crtbegin.o
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. -lg2c -lm -lgcc -lc
-lgcc /usr/lib/gcc-lib/i386-redhat-linux/2.96/crtend.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crtn.o
/tmp/ccCU7G0x
__G77_LIBF77_VERSION__: 0.5.26 20000731 (prerelease)
@(#)LIBF77 VERSION 19991115
__G77_LIBI77_VERSION__: 0.5.26 20000731 (prerelease)
@(#) LIBI77 VERSION pjw,dmg-mods 19991115
__G77_LIBU77_VERSION__: 0.5.26 20000731 (prerelease)
@(#) LIBU77 VERSION 19980709
Best regards
--
-------------------------------------------------------------------------------
L. L. Salcedo
Departamento de Fisica Moderna Tel. 34-958-246170
Facultad de Ciencias Fax 34-958-249487
E-18071 Granada E-mail salcedo@ugr.es
Spain
-------------------------------------------------------------------------------
Attachment:
source.f
Description: source
Attachment:
compiler
Description: version
Attachment:
output
Description: output
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |