https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71066
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #8 from kargl at gcc dot gnu.org --- (In reply to Thomas Koenig from comment #7) > F2018: > > C876 > (R839) A variable whose designator appears as a data-stmt-object or a > data-i-do-object shall not be a > dummy argument, accessed by use or host association, in a named common block > unless the DATA statement is > in a block data program unit, in blank common, a function name, a function > result name, an automatic data > object, or an allocatable variable. > > So, the first example violates a constraint, which should be diagnosed. > > The second one appears to be OK. The second one is invalid. f2008:C565 A data-stmt-object or data-i-do-object shall not be a coindexed variable. f2018:C873 A data-stmt-object or data-i-do-object shall not be a coindexed variable.