public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* fix fortran 0 lengthed arrays
@ 2014-05-09 14:09 Mike Stump
  0 siblings, 0 replies; only message in thread
From: Mike Stump @ 2014-05-09 14:09 UTC (permalink / raw)
  To: gcc-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-09 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-09 14:09 fix fortran 0 lengthed arrays Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).