public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96583] New: F2018 changes to get_environment_variable
@ 2020-08-12  7:15 markeggleston at gcc dot gnu.org
  2020-08-12 16:12 ` [Bug fortran/96583] " kargl at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: markeggleston at gcc dot gnu.org @ 2020-08-12  7:15 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/96583] F2018 changes to get_environment_variable
  2020-08-12  7:15 [Bug fortran/96583] New: F2018 changes to get_environment_variable markeggleston at gcc dot gnu.org
@ 2020-08-12 16:12 ` kargl at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: kargl at gcc dot gnu.org @ 2020-08-12 16:12 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org
           Priority|P3                          |P4
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-08-12
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from kargl at gcc dot gnu.org ---
See comment #18 in PR96486 for a patch that fixes parsing of this intrinsic
routine.  Generating the actual call is a WIP.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-12 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  7:15 [Bug fortran/96583] New: F2018 changes to get_environment_variable markeggleston at gcc dot gnu.org
2020-08-12 16:12 ` [Bug fortran/96583] " kargl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).