https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64069
Bug ID: 64069
Summary: [4.8/4.9 Regression] ICE on allocating character array
with source
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: janus at gcc dot gnu.org
Consider the following example code:
character(len=12), allocatable :: yDesc(:)
allocate(yDesc(5), source="some_string")
print *,yDesc(1:5)
end
This ICEs with gfortran 4.7.4, 4.8.3 and 4.9.1, while it compiles and runs as
expected with 4.6.4. Haven't tried trunk.