https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63903
Bug ID: 63903
Summary: ICE with assignment of allocatable character array
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: davidgkinniburgh at yahoo dot co.uk
CHARACTER (LEN=:), ALLOCATABLE :: temp(:), s(:)
ALLOCATE(CHARACTER(LEN=2) :: s(2))
s = 'ab'
temp = s
print *, "temp = ", temp
end
>gfortran -c -Wall testgcc50.f90
testgcc50.f90:4:0:
temp = s
^
internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1774
libbacktrace could not find executable to open
Please submit a full bug report,
Intel FC 15.0 compiles and runs this OK.
gcc version 5.0.0. 20141109 (experimental) but also 4.9.2.