This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35702] New: internal compiler error: structure character element with subscripts
- From: "dick dot hendrickson at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2008 01:05:47 -0000
- Subject: [Bug fortran/35702] New: internal compiler error: structure character element with subscripts
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following program produces an internal compiler error.
Changing the structure element to real or replacing the
structure subscripts with constants "fixes" the problem.
MODULE TESTS
! fails on Windows XP
! gcc version 4.4.0 20080312 (experimental) [trunk revision 133139]
! cg0028.f:15: internal compiler error: in gfc_add_modify, at
fortran/trans.c:167
TYPE UNSEQ
CHARACTER(1) :: C
! real :: C !works
END TYPE UNSEQ
CONTAINS
SUBROUTINE CG0028(TDA1L,TDA1R,nf0,nf1,nf2,nf3)
TYPE(UNSEQ) TDA1L(NF3)
TYPE(UNSEQ) TDA1R(NF3)
TDA1L(NF1:NF2:NF1)%C = TDA1L(NF0+2:NF3:NF2/2)%C
! TDA1L(1:2:1)%C = TDA1L(0+2:3:2/2)%C !works
END SUBROUTINE
END MODULE TESTS
--
Summary: internal compiler error: structure character element
with subscripts
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dick dot hendrickson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35702