[Bug fortran/61337] Wrong indexing and runtime crash with unlimited polymorphic array.

vladimir.fuka at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 2 10:13:00 GMT 2015


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

--- Comment #2 from Vladimir Fuka <vladimir.fuka at gmail dot com> ---
The first is fixed on trunk apparently by
https://gcc.gnu.org/ml/fortran/2015-07/msg00038.html


The modification

  call add_item(a_list, [1, 2])
  call add_item(a_list, [1, 2])

  do i = 1, size(a_list)
    call print(a_list(i))
  end do


still causes a segfault.



More information about the Gcc-bugs mailing list