https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71066

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
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.

Reply via email to