https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63230
Bug ID: 63230
Summary: allocation of deferred length character as derived
type component causes internal compiler error
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: baradi09 at gmail dot com
Created attachment 33474
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33474&action=edit
Source file which triggers the internal compiler error
Trying to allocate a derived type component, which is a deferred length
character variable, causes gfortran (GNU Fortran (GCC) 5.0.0 20140831
(experimental)) throwing the following internal compiler error:
[507]> gfortran m_strings.f90
m_strings.f90:38:0:
allocate(character(newsize) :: s%chars)
^
internal compiler error: in gimplify_expr, at gimplify.c:8583
0x547f08 ???
../sysdeps/x86_64/elf/start.S:113
Please submit a full bug report,