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

            Bug ID: 96584
           Summary: f2018 changes to get_command
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markeggleston at gcc dot gnu.org
            Blocks: 85836
  Target Milestone: ---

Fortran 2003 and Fortran 2008:

COMMAND(Optional) shall be of type CHARACTER and of default kind.
LENGTH (Optional) Shall be of type INTEGER and of default kind.
STATUS(Optional) Shall be of type INTEGER and of default kind.

all are intent(out)

Fortran 2018:

COMMAND(Optional) shall be of type CHARACTER and of default kind.
LENGTH (Optional) shall be scalar of type integer with a decimal exponent range
of at least four
STATUS(Optional) shall be scalar of type integer with a decimal exponent range
of at least four
ERRMSG (optional) shall be a default character scalar.  It is assigned a
processor-dependent explanatory message if the command retrieval fails.
Otherwise, it is unchanged.

all are intent(out) except ERRMSG which is intent(inout)

ERRMSG is new an is not currently supported.
---

-std=f2003 and -std=f2008

gfortran 11.0 currently correctly rejects arguments command and length with
types other than default integer

-std=f2018

gfortran 11.0 currently correctly rejects arguments command and length with
types other than default integer


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85836
[Bug 85836] [meta-bug] Fortran 2018 support

Reply via email to