https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61275
Bug ID: 61275 Summary: Invalid initialization expression for ALLOCATABLE component in structure constructor at (1) Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: antony at cosmologist dot info module A Type T character(LEN=:), allocatable :: S end type Type(T) :: TestObj = T('string') contains end module Trunk gives Error: Invalid initialization expression for ALLOCATABLE component 's' in structure constructor at (1) Note similarity to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51976#c12 which was apparently working at some point. (but great to see deferred-length character components of derived types now implemented).