diff mbox

fix fortran 0 lengthed arrays

Message ID 5D81FE4F-A649-4045-BFBB-2C24D7796F8D@comcast.net
State New
Headers show

Commit Message

Mike Stump May 9, 2014, 2:09 p.m. UTC
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.
diff mbox

Patch

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)
         {