------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-09-18
19:52 -------
Not fixed in 4.0:
$ cat > reduced.f90
program Decapitation
implicit none
integer, parameter :: STRING_LENGTH = 80
character (len = STRING_LENGTH) :: Text_1, Text_2
Text_2 = Decap (Text_1)
stop
contains
function Decap (String) result (New_String)
character (len = *), intent(in) :: String
character (len = Len(String)) :: New_String
return
end function Decap
end program Decapitation
$ gfortran reduced.f90
reduced.f90: In function 'MAIN__':
reduced.f90:11: internal compiler error: in gfc_conv_function_call, at
fortran/trans-expr.c:1108
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0/configure --prefix=/home/ig25
--enable-languages=c,fortran
Thread model: posix
gcc version 4.0.2 20050917 (prerelease)
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu dot
| |org
Status|RESOLVED |REOPENED
Known to fail| |4.0.2
Known to work| |4.1.0
Resolution|FIXED |
Summary|ICE with assumed length |[4.0 only] ICE with assumed
|character strings |length character strings
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15326