[Bug fortran/65428] ICE on nest array constructor

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Thu Feb 11 22:49:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65428

--- Comment #4 from Harald Anlauf <anlauf at gmx dot de> ---
I tried to follow the state of the variable "cons_state" in array.c
for the following codes:

  j = 0
  print *, (/ (/ (i, i=1,j) /) /)                    ! no ICE

and

  print *, (/ (/ (i, i=1,0) /) /)                    ! ICE

but did not really understand the recursive algorithm.

The two cases diverge in the for loop in check_constructor_type,
with the first one leading to sane states, but not the other.

Giving up.


More information about the Gcc-bugs mailing list