[Bug fortran/57023] [4.8/4.9/5 Regression] Not packing arrays with changing variable used for size
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 20 07:03:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57023
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Created attachment 34493
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34493&action=edit
Proposed patch
This patch creates a temporary if a bound of the
array contains a dummy variable which is not
INTENT(IN) (so it could potentially be changed
by the user).
Modern code should always have INTENT(IN) for
something passed as array bounds, anyway. We
should be correct for all cases, but not try
to optimize the pathological ones.
More information about the Gcc-bugs
mailing list