This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13253] New: [gfortran] ICE when using DIMENSION
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2003 02:44:09 -0000
- Subject: [Bug fortran/13253] New: [gfortran] ICE when using DIMENSION
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
With: gcc version 3.5-tree-ssa 20031130 (merged 20031123)
test.f90:
MODULE mymod
TYPE :: MYTYPE
CHARACTER(12), DIMENSION(3) :: FIELD
END TYPE MYTYPE
TYPE (MYTYPE) :: MYVALUE
END MODULE mymod
SUBROUTINE MYSUB (MYARG)
USE mymod;
END SUBROUTINE MYSUB
gfortran -c test.f90
test.f90:0: internal compiler error: in gfc_get_dtype_cst, at
fortran/trans-types.c:585
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
If "DIMENSION(3)" is deleted,the code compiles fine.
Intel's compiler compiles the above code.
Code like this appears in SPEC2000
--
Summary: [gfortran] ICE when using DIMENSION
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=13253