https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96583
Bug ID: 96583
Summary: F2018 changes to get_environment_variable
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:
Arguments LENGTH and STATUS shall be default integer scalars.
Fortran 2018:
Arguments LENGTH and STATUS shall be a scalars of type integer with a decimal
exponent range of at least four.
New argument:
ERRMSG (optional) shall be a default character scalar. It is an INTENT (INOUT)
argument. 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. Not currently supported by gfortran 11.
---
For -std=f2003 and -std=f2008 LENGTH and STATUS arguments should be rejected if
they are not default integer scalars, gfortran 11 produces "type mismatch in
argument" error messages.
For -std=f2018 and -std=gnu LENGTH and STATUS arguments should only be rejected
if the is integer(1).
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85836
[Bug 85836] [meta-bug] Fortran 2018 support