[Bug fortran/49050] New: ICE with deferred character length derived type component
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 18 18:16:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: kargl@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
More information about the Gcc-bugs
mailing list