https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96585
Bug ID: 96585 Summary: Fortran 2018 changes to get_command_argument 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 2008: NUMBER Shall be a scalar of type INTEGER and of default kind, NUMBER ≥ 0 VALUE(Optional) Shall be a scalar of type CHARACTER and of default kind. LENGTH(Optional) Shall be a scalar of type INTEGER and of default kind. STATUS(Optional) Shall be a scalar of type INTEGER and of default kind. Optional arguments are intent(out) Fortran 2018: NUMBER Shall be a scalar of type INTEGER and of default kind, NUMBER ≥ 0 VALUE(Optional) Shall be a scalar of type CHARACTER and of default kind. LENGTH(Optional) shall be a scalar of type integer with a decimal exponent range of at least four STATUS(Optional) shall be a 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 optional argument STATUS is, or would be if present, assigned a positive value. Otherwise, it is unchanged. Optional arguments are intent(out) except ERRMSG which is intent(inout) --- Arguments LENGTH and STATUS should only be accepted with types other than default kind if -std-f2018 or-std-gnu, integer(1) should be treated the same way it is treated for -std=f2003 and -std=f2008. Use of ERRMSG should only be allowed with -std=f2018 and -std=gnu. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85836 [Bug 85836] [meta-bug] Fortran 2018 support