This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56800] [fortran-dev Regression] move_alloc_13.f90 failure
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-04-01 18:01:03 UTC ---
The problem is in gfc_array_init_size. There, one should first obtain the
element size. And instead of gfc_conv_descriptor_stride_set one should use
gfc_conv_descriptor_sm_set.
Additionally, one could directly set
gfc_conv_descriptor_extent_set (matching the current size variable) instead of
using gfc_conv_descriptor_ubound_set.
The only difficulty is to implement it such that the overflow algorithm works.