This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31259] New: ICE on elemental character function
- 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: 19 Mar 2007 00:57:57 -0000
- Subject: [Bug fortran/31259] New: ICE on elemental character function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gfortran ICEs on the following invalid code:
print *, len(bar([2,3,4,5]))
contains
elemental function bar(i)
integer, intent(in) :: i
character(len=i) :: bar
bar = ""
end function bar
end
We should simply reject i being used in an initialization expr.
--
Summary: ICE on elemental character function
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-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=31259