[Bug fortran/38887] [4.4 Regression] run-time abort for MVBITS with run-time zero sized array arguments

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Jan 17 22:20:00 GMT 2009



------- Comment #2 from burnus at gcc dot gnu dot org  2009-01-17 22:20 -------
Created an attachment (id=17130)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17130&action=view)
Difference of the dump

The problem is the call
    _gfortran_internal_unpack (&parm.2, D.1572);
since the array has zero extent. The _gfortrani_internal_unpack_4 has the
following check:

61            extent[n] = d->dim[n].ubound + 1 - d->dim[n].lbound;
62            if (extent[n] <= 0)
63              abort ();


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38887



More information about the Gcc-bugs mailing list