[Bug fortran/13248] New: ICE when using CHARACTER() in a type
dann at godzilla dot ics dot uci dot edu
gcc-bugzilla@gcc.gnu.org
Mon Dec 1 01:13:00 GMT 2003
With: gcc version 3.5-tree-ssa 20031130 (merged 20031123)
mymod.f90:
MODULE mymod
TYPE :: mymod_type
INTEGER field1
CHARACTER(80) field2
END TYPE
TYPE (mymod_type), &
& DIMENSION(:), ALLOCATABLE :: AN_EXAMPLE
END MODULE mymod
test.f90
SUBROUTINE mytest (MYARG)
USE mymod;
INTEGER :: MYARG
DO i = 1,MYARG
AN_EXAMPLE(i) = mymod_type (0,' ')
ENDDO
END
gfortran -c test.f90
test.f90: In function `mytest':
test.f90:5: internal compiler error: in operand_subword_force, at emit-rtl.c:1731
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
If field2's type is changed to something else, everything works fine.
--
Summary: ICE when using CHARACTER() in a type
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13248
More information about the Gcc-bugs
mailing list