This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49430] ICE with allocatable length character in interface block
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jun 2011 19:40:55 +0000
- Subject: [Bug fortran/49430] ICE with allocatable length character in interface block
- Auto-submitted: auto-generated
- References: <bug-49430-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49430
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu.org
--- Comment #2 from janus at gcc dot gnu.org 2011-06-21 19:40:25 UTC ---
The same error occurs for the test case in PR 49112 comment 7:
module datetime_mod
implicit none
private
type :: DateTime
contains
procedure :: getFormattedString
end type
contains
function getTimeString(dt, FMT) result(string)
character(:), allocatable :: string
class(DateTime), intent(IN) :: dt
integer, optional, intent(IN) :: FMT
string = dt%getFormattedString(2, FMT)
end function
function getFormattedString(this, FILTER, FMT) &
result(string)
character(:), allocatable :: string
class(DateTime), intent(IN) :: this
integer, optional, intent(IN) :: FILTER, FMT
end function
end module
c7.f90: In function âgettimestringâ:
c7.f90:18:0: internal compiler error: tree check: expected tree that contains
âtypedâ structure, have ââ in fold_convert_loc, at fold-const.c:1859