This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/65428] ICE on nest array constructor


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]