This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31610] [4.3 Regression] ICE with transfer, merge in gfc_conv_expr_descriptor
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2008 04:25:45 -0000
- Subject: [Bug fortran/31610] [4.3 Regression] ICE with transfer, merge in gfc_conv_expr_descriptor
- References: <bug-31610-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from jvdelisle at gcc dot gnu dot org 2008-01-26 04:25 -------
Cleaned up patch:
Index: trans-array.c
===================================================================
--- trans-array.c (revision 131850)
+++ trans-array.c (working copy)
@@ -588,9 +588,7 @@ gfc_trans_create_temp_array (stmtblock_t
for (dim = 0; dim < info->dimen; dim++)
{
n = loop->order[dim];
- if (n < loop->temp_dim)
- gcc_assert (integer_zerop (loop->from[n]));
- else
+ if (n >= loop->temp_dim)
{
/* Callee allocated arrays may not have a known bound yet. */
if (loop->to[n])
Regression tests OK on x86-64. If this solves Joosts problem on 34946, its a
big two for one deal. The reduced test cases compile and Joost's original test
from the PR case compiles.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31610