When compiling the following program,
------------------
real :: cntrate
call system_clock(count_rate=cntrate)
end
------------------
gfortran (4.2.0 20060725) shows the error:
call system_clock(count_rate=cntrate)
1
Error: 'count_rate' argument of 'system_clock' intrinsic at (1) must be INTEGER
Expected: No error is shown as the Fortran standard (quoting from Fortran 2003)
allows this:
--------------------------------
13.7.117 SYSTEM_CLOCK ([COUNT, COUNT_RATE, COUNT_MAX])
Arguments.
COUNT (optional) shall be scalar and of type integer.
COUNT RATE (optional) shall be scalar and of type integer or real.
COUNT MAX (optional) shall be scalar and of type integer.
--------------------------------
--
Summary: system_clock with real-type count_rate does not compile
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tobias dot burnus at physik dot fu-berlin dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28484