This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2009 21:30:46 -0000
- Subject: [Bug fortran/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays
- References: <bug-38859-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mikael at gcc dot gnu dot org 2009-01-15 21:30 -------
quick fix:
Index: simplify.c
===================================================================
--- simplify.c (révision 143354)
+++ simplify.c (copie de travail)
@@ -2253,7 +2253,8 @@ simplify_bound (gfc_expr *array, gfc_expr *dim, gf
case AR_FULL:
/* We're done because 'as' has already been set in the
previous iteration. */
- goto done;
+ if (!ref->next)
+ goto done;
case AR_SECTION:
case AR_UNKNOWN:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38859