This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/65428] ICE on nest array constructor
- From: "fxcoudert at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 May 2015 14:39:01 +0000
- Subject: [Bug fortran/65428] ICE on nest array constructor
- Auto-submitted: auto-generated
- References: <bug-65428-4 at http dot gcc dot gnu dot org/bugzilla/>
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