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.