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