[Bug fortran/45440] [F03] ALLOCATE with SOURCE gives an ICE (segfault)
janus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Aug 28 11:55:00 GMT 2010
------- Comment #4 from janus at gcc dot gnu dot org 2010-08-28 11:55 -------
It works though when explicitly specifying the size of z to allocate:
logical, allocatable :: z(:)
allocate ( z(3), source = [ .true., .false., .true. ] )
print *, z
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45440
More information about the Gcc-bugs
mailing list