Fortran 2018 constraint C7115 prohibits the use of the same array constructor implied DO loop index name at multiple levels of a nest of implied DO loops. But array constructor implied DO loop indexes are “statement entities” with scope, and can appear in multiple implied DO loops in the same array constructor so long as they don’t nest, and can have distinct types. So why the prohibition against the name duplication?
(DATA statement implied DO loops do not have an analogous constraint, although ifort and nagfor both enforce one. I/O statement implied DO loops do have an analogous constraint, but it makes sense because they aren’t statement entities and can be referenced after the statement.)