http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49050
Summary: ICE with deferred character length derived type component Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: ka...@gcc.gnu.org The following code gives an ICE. I haven't check it against the standard yet to determine if this is valid or invalid code. Nonetheless, it should not ICE. module simple_module implicit none type :: item_type character(len=:), allocatable :: key end type item_type end module simple_module program test_simple use simple_module implicit none type(item_type) :: item ! ICE item = item_type('key') ! item%key = 'key' end program