[Bug fortran/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays
mikael at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 15 21:30:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list