This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28484] New: system_clock with real-type count_rate does not compile
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2006 17:09:13 -0000
- Subject: [Bug fortran/28484] New: system_clock with real-type count_rate does not compile
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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