ICE in operand_subword_force, at emit-rtl.c:1353

Paul THOMAS paulthomas2@wanadoo.fr
Mon Sep 25 19:46:00 GMT 2006


Daniel,

I belive this to be one and the same as, or strongly related to PR18923 and possibly PR17741.

The compiler gets into a dreadful mess when it finds beginnings and ends do not match or when it finds one without the other.

Paul





> Message du 25/09/06 20:53
> De : "Daniel Franke" 
> A : fortran@gcc.gnu.org
> Copie à : 
> Objet : ICE in operand_subword_force, at emit-rtl.c:1353
> 
> 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