fix fortran 0 lengthed arrays
Mike Stump
mikestump@comcast.net
Fri May 9 14:09:00 GMT 2014
This fixes a small bug in the conversion of the fortran front-end conversion to wide-int.
PR fortran/61109
* trans-array.c (gfc_conv_array_initializer): Fix wide-int
conversion bug.
Index: trans-array.c
===================================================================
--- trans-array.c (revision 210276)
+++ trans-array.c (working copy)
@@ -5405,7 +5405,6 @@ gfc_conv_array_initializer (tree type, g
gfc_conv_structure (&se, expr, 1);
wtmp = wi::to_offset (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) + 1;
- gcc_assert (wtmp != 0);
/* This will probably eat buckets of memory for large arrays. */
while (wtmp != 0)
{
More information about the Gcc-patches
mailing list