aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/parse.cc
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2023-12-18 18:59:02 +0100
committerHarald Anlauf <anlauf@gmx.de>2023-12-18 20:32:52 +0100
commitb77691a90fc8a7e917417ce747bf78669304f951 (patch)
tree7a6a27ed6db2d95f978d35dd58107aa204b6a1e4 /gcc/go/gofrontend/parse.cc
parentf85fdf59c91fe4aa56633347268d144d3e075844 (diff)
downloadgcc-b77691a90fc8a7e917417ce747bf78669304f951.zip
gcc-b77691a90fc8a7e917417ce747bf78669304f951.tar.gz
gcc-b77691a90fc8a7e917417ce747bf78669304f951.tar.bz2
Fortran: update DATE_AND_TIME intrinsic for Fortran 2018 [PR96580]
Fortran 2018 allows a non-default integer kind for its VALUES argument if it has a decimal exponent range of at least four. Update checks, library implementation and documentation. gcc/fortran/ChangeLog: PR fortran/96580 * check.cc (array_size_check): New helper function. (gfc_check_date_and_time): Use it for checking minimum size of VALUES argument. Update kind check to Fortran 2018. * intrinsic.texi: Fix documentation of DATE_AND_TIME. libgfortran/ChangeLog: PR fortran/96580 * intrinsics/date_and_time.c (date_and_time): Handle VALUES argument for kind=2 and kind=16 (if available). gcc/testsuite/ChangeLog: PR fortran/96580 * gfortran.dg/date_and_time_2.f90: New test. * gfortran.dg/date_and_time_3.f90: New test. * gfortran.dg/date_and_time_4.f90: New test.
Diffstat (limited to 'gcc/go/gofrontend/parse.cc')
0 files changed, 0 insertions, 0 deletions