[Bug fortran/49112] [4.6/4.7 Regression] [OOP] Missing type-bound procedure, "duplicate save" warnings and internal compiler error
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat May 28 11:09:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49112
--- Comment #7 from janus at gcc dot gnu.org 2011-05-28 10:53:18 UTC ---
Here is a reduced test case for the ICE:
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
More information about the Gcc-bugs
mailing list