This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29387] New: ICE on character array function of variable length
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2006 19:46:24 -0000
- Subject: [Bug fortran/29387] New: ICE on character array function of variable length
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat a4.f90
PRINT *, LEN(SUB(3))
CONTAINS
FUNCTION SUB(I)
CHARACTER(LEN=I) :: SUB(1)
END FUNCTION
END
$ gfortran a4.f90
a4.f90: In function ?sub?:
a4.f90:1: warning: Function does not return a value
a4.f90: In function ?MAIN__?:
a4.f90:1: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:2160
The failing assertion is gcc_assert (se->loop && info)
--
Summary: ICE on character array function of variable length
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29387