This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21394] New: Internal compiler error, possibly due to large parameter array
- From: "gnalle at ruc dot dk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 May 2005 07:18:59 -0000
- Subject: [Bug fortran/21394] New: Internal compiler error, possibly due to large parameter array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program causes my gfortran to throw an internal compiler
error. The problem does not occur for N=10, so I gather that it happens
due to a maximum limit on parameter array size.
[niels:~]% cat test.f
MODULE TEST
integer ilocal
integer,parameter :: N=50
integer, parameter :: na = N/2
integer, parameter :: nb = N-NA
real*8, dimension(2),parameter :: masses=(/1.0,1.0/)
real*8, dimension(3*n),parameter ::
$ massvector = (/
$ (masses(1),ilocal=1,Na),(masses(2),ilocal=1,Nb),
$ (masses(1),ilocal=1,Na),(masses(2),ilocal=1,Nb),
$ (masses(1),ilocal=1,Na),(masses(2),ilocal=1,Nb)
$ /)
END MODULE
[niels:~]% gfortran-4.0 -c test.f -o test.o
test.f:0: internal compiler error: Possible frontend bug: array constructor not
expanded
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
[niels:~]% gfortran-4.0 -v -save-temps -c test.f -o test.o
Using built-in specs.
Target: i486-linux
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada
--prefix=/usr --libexecdir=/usr/lib --enable-shared --with-system-zlib
--enable-nls --enable-threads=posix --without-included-gettext
--program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo --enable-mpfr --enable-checking=release
i486-linux
Thread model: posix
gcc version 4.0.0 20050301 (prerelease) (Debian 4.0-0pre6ubuntu6)
/usr/lib/gcc/i486-linux/4.0.0/f951 test.f -ffixed-form -quiet -dumpbase test.f
-mtune=i486 -auxbase-strip test.o -version -o test.s
GNU F95 version 4.0.0 20050301 (prerelease) (Debian 4.0-0pre6ubuntu6) (i486-linux)
compiled by GNU C version 4.0.0 20050301 (prerelease) (Debian
4.0-0pre6ubuntu6).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64545
test.f:0: internal compiler error: Possible frontend bug: array constructor not
expanded
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
--
Summary: Internal compiler error, possibly due to large parameter
array
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnalle at ruc dot dk
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21394