[Bug fortran/65428] ICE on nest array constructor
fxcoudert at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 4 14:39:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65428
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2015-03-15 00:00:00 |2015-5-4
--- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
The original example is Fortran 2003 (array constructor with type
specification). Here is a pure Fortran 95 example, which is also an
ice-on-valid-code:
integer :: i
print *, (/ (/ (i, i=1,0) /) /)
end
Surprisingly, this constructor works OK when used as initializer:
integer :: i
integer, parameter :: x(0) = (/ (/ (i, i=1,0) /) /)
print *, x
print *, (/ x /)
end
More information about the Gcc-bugs
mailing list