public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96580] New: F2018 changes to date_and_time intrinsics
@ 2020-08-12  6:53 markeggleston at gcc dot gnu.org
  2021-02-22  5:42 ` [Bug fortran/96580] " jvdelisle at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: markeggleston at gcc dot gnu.org @ 2020-08-12  6:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96580
           Summary: F2018 changes to date_and_time intrinsics
           Product: gcc
           Version: 10.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: ---

Prior to Fortran 2018:

VALUES (optional) shall be a rank-one default integer array. It is an INTENT
(OUT) argument. Its size shall be at least 8.

Fortran 2018:

VALUES (optional) shall be a rank-one array of type integer with a decimal
exponent range of at least four. It is an INTENT (OUT) argument. Its size shall
be at least 8.

For -std=f2008 and earlier arrays of integer type of other than default kind
should be rejected as the value argument. Currently 11.0 compiles with integers
of kind other than default including integer(1).

For -std=f2018 and -std=gnu arrays of integer type with kinds 2 and greater are
allowed, integer(1) is rejected.

Currently there are issues with gfortran manual documentation:

- minimum sizes are specified for the character arguments date, time and zones,
the standards do not specify a minimum size and gfortran allows smaller sizes.
- the VALUES argument is described as (Optional) The type shall be INTEGER(8),
which implies a scalar integer of kind 8.


Referenced Bugs:

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

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

end of thread, other threads:[~2023-12-18 21:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  6:53 [Bug fortran/96580] New: F2018 changes to date_and_time intrinsics markeggleston at gcc dot gnu.org
2021-02-22  5:42 ` [Bug fortran/96580] " jvdelisle at gcc dot gnu.org
2021-02-22 16:14 ` dominiq at lps dot ens.fr
2023-12-17 22:16 ` anlauf at gcc dot gnu.org
2023-12-17 22:16 ` anlauf at gcc dot gnu.org
2023-12-18 18:17 ` anlauf at gcc dot gnu.org
2023-12-18 19:33 ` cvs-commit at gcc dot gnu.org
2023-12-18 21:35 ` anlauf 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).