------- Comment #17 from janus at gcc dot gnu dot org 2010-04-19 18:47 ------- (In reply to comment #16) > I think the culprit is: > > Date: Sat Jul 25 11:56:35 2009 > New Revision: 150078 > URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150078
Close, but not quite :) It's actually r150047, as I just found out. However, this revision only introduces the first ICE in the test case: module m_string procedure(string_to_char) :: char1 ! ICE #1 ! procedure(string_to_char),pointer :: char2 ! ICE #2 ! type t_string ! procedure(string_to_char),pointer,nopass :: char3 ! ICE #3 ! end type t_string contains function string_to_char (s) result(res) character, dimension(:), intent(in) :: s character(len=size(s)) :: res end function string_to_char end module m_string The second one is already there at r150046. For this I found a window of 147438:148816 up to now. Will try to find out more. The third ICE is not present at 150047, but is apparently masked by another error: character(len=size(s)) :: res 1 Error: Character length of component 'char3' needs to be a constant specification expression at (1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43227