Commit 4f61140c by Mike Stump Committed by Mike Stump

re PR fortran/61109 (ICE in fortran/trans-array.c on dimension 0 arrays)

	PR fortran/61109
        * trans-array.c (gfc_conv_array_initializer): Fix wide-int
	conversion bug.

From-SVN: r210277
parent 971ed35d
2014-05-09 Mike Stump <mikestump@comcast.net>
PR fortran/61109
* trans-array.c (gfc_conv_array_initializer): Fix wide-int
conversion bug.
2014-05-08 Tobias Burnus <burnus@net-b.de> 2014-05-08 Tobias Burnus <burnus@net-b.de>
* gfortran.h (gfc_isym_id): Add GFC_ISYM_CAF_GET * gfortran.h (gfc_isym_id): Add GFC_ISYM_CAF_GET
......
...@@ -5405,7 +5405,6 @@ gfc_conv_array_initializer (tree type, gfc_expr * expr) ...@@ -5405,7 +5405,6 @@ gfc_conv_array_initializer (tree type, gfc_expr * expr)
gfc_conv_structure (&se, expr, 1); gfc_conv_structure (&se, expr, 1);
wtmp = wi::to_offset (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) + 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. */ /* This will probably eat buckets of memory for large arrays. */
while (wtmp != 0) while (wtmp != 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment