On Wed, Nov 16, 2022 at 04:32:39PM -0800, Steve Kargl via Fortran wrote: > On Wed, Nov 16, 2022 at 01:30:07PM -0800, Steve Kargl via Fortran wrote: > > On Tue, Nov 15, 2022 at 05:13:19PM -0800, Steve Kargl via Fortran wrote: > > > F2008 introduced the inclusion of a typespec in a forall > > > statement, and thn F2018 a typespec was allowed in an > > > implied-do. There may even be a few bug reports. > > > > > > > New patch. This one handles the example of an implied-do > > loop in an initialization expression (see patch for expr.cc). > > > > Seems to cause regressions. >
It seems that the patch to expr.cc allows the implied-do-index to escape into the namespace of scoping unit that contains the implied-do loop. -- Steve