ICE in operand_subword_force, at emit-rtl.c:1353
Daniel Franke
franke.daniel@gmail.com
Mon Sep 25 17:19:00 GMT 2006
Hi all,
I just found this ICE ...
$> cat ice.f90
PROGRAM test_ice
CHARACTER(len=255), DIMENSION(:,:), ALLOCATABLE :: attrib
ALLOCATE(attrib(3,2))
attrib = reshape((/ "x", "y", "z", to_string(1.0), to_string(2.0),
to_string(3.0) /), &
(/ 3, 2 /))
DEALLOCATE(attrib)
CONTAINS
CHARACTER(32) FUNCTION to_string(x)
REAL, INTENT(in) :: x
WRITE(to_string, FMT="(F6.3)") x
END FUNCTION
END PROGRAM
$> gfortran-4.2 g -Wall ice.f90
ice-2.f90: In function 'MAIN__':
ice-2.f90:6: internal compiler error: in operand_subword_force, at
emit-rtl.c:1353
Please submit a full bug report,
$> gfortran-4.2 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure
--prefix=/home/daniel/nfs/packages/i686-pc-linux-gnu/gcc-4.2-svn
--enable-threads=posix --enable-shared --with-system-zlib
--enable-languages=c,c++,fortran --program-suffix=-4.2
Thread model: posix
gcc version 4.2.0 20060920 (experimental)
More information about the Fortran
mailing list