public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/112609] New: [F2023] Restrictions on integer arguments to SYSTEM_CLOCK
@ 2023-11-18 19:28 anlauf at gcc dot gnu.org
  2023-11-18 22:18 ` [Bug fortran/112609] " anlauf at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-18 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112609
           Summary: [F2023] Restrictions on integer arguments to
                    SYSTEM_CLOCK
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

F2023 has changed the requirements for the arguments to SYSTEM_CLOCK:

"Fortran 2018 allowed integer arguments to the intrinsic subroutine
SYSTEM_CLOCK to be of any kind. This document requires integer arguments to
SYSTEM_CLOCK to have a decimal exponent range at least as large as a default
integer, and requires that all integer arguments in a reference to
SYSTEM_CLOCK have the same kind type parameter."

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

* [Bug fortran/112609] [F2023] Restrictions on integer arguments to SYSTEM_CLOCK
  2023-11-18 19:28 [Bug fortran/112609] New: [F2023] Restrictions on integer arguments to SYSTEM_CLOCK anlauf at gcc dot gnu.org
@ 2023-11-18 22:18 ` anlauf at gcc dot gnu.org
  2023-11-23 18:32 ` cvs-commit at gcc dot gnu.org
  2023-11-23 20:48 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-18 22:18 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-11-18
           Assignee|unassigned at gcc dot gnu.org      |anlauf at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #1 from anlauf at gcc dot gnu.org ---
Patch: https://gcc.gnu.org/pipermail/fortran/2023-November/059923.html

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

* [Bug fortran/112609] [F2023] Restrictions on integer arguments to SYSTEM_CLOCK
  2023-11-18 19:28 [Bug fortran/112609] New: [F2023] Restrictions on integer arguments to SYSTEM_CLOCK anlauf at gcc dot gnu.org
  2023-11-18 22:18 ` [Bug fortran/112609] " anlauf at gcc dot gnu.org
@ 2023-11-23 18:32 ` cvs-commit at gcc dot gnu.org
  2023-11-23 20:48 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-23 18:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:0c2ecfd4a29161d6c2bd3a83335387f42ff38ffe

commit r14-5797-g0c2ecfd4a29161d6c2bd3a83335387f42ff38ffe
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Nov 22 20:57:59 2023 +0100

    Fortran: restrictions on integer arguments to SYSTEM_CLOCK [PR112609]

    Fortran 2023 added restrictions on integer arguments to SYSTEM_CLOCK to
    have a decimal exponent range at least as large as a default integer,
    and that all integer arguments have the same kind type parameter.

    gcc/fortran/ChangeLog:

            PR fortran/112609
            * check.cc (gfc_check_system_clock): Add checks on integer
arguments
            to SYSTEM_CLOCK specific to F2023.
            * error.cc (notify_std_msg): Adjust to handle new features added
            in F2023.
            * gfortran.texi (_gfortran_set_options): Document
GFC_STD_F2023_DEL,
            remove obsolete option GFC_STD_F2008_TS and fix enumeration values.
            * libgfortran.h (GFC_STD_F2023_DEL): Add and use in
GFC_STD_OPT_F23.
            * options.cc (set_default_std_flags): Add GFC_STD_F2023_DEL.

    gcc/testsuite/ChangeLog:

            PR fortran/112609
            * gfortran.dg/system_clock_1.f90: Add option -std=f2003.
            * gfortran.dg/system_clock_3.f08: Add option -std=f2008.
            * gfortran.dg/system_clock_4.f90: New test.

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

* [Bug fortran/112609] [F2023] Restrictions on integer arguments to SYSTEM_CLOCK
  2023-11-18 19:28 [Bug fortran/112609] New: [F2023] Restrictions on integer arguments to SYSTEM_CLOCK anlauf at gcc dot gnu.org
  2023-11-18 22:18 ` [Bug fortran/112609] " anlauf at gcc dot gnu.org
  2023-11-23 18:32 ` cvs-commit at gcc dot gnu.org
@ 2023-11-23 20:48 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-23 20:48 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |14.0

--- Comment #3 from anlauf at gcc dot gnu.org ---
Fixed.

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

end of thread, other threads:[~2023-11-23 20:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-18 19:28 [Bug fortran/112609] New: [F2023] Restrictions on integer arguments to SYSTEM_CLOCK anlauf at gcc dot gnu.org
2023-11-18 22:18 ` [Bug fortran/112609] " anlauf at gcc dot gnu.org
2023-11-23 18:32 ` cvs-commit at gcc dot gnu.org
2023-11-23 20:48 ` 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).