From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24578 invoked by alias); 25 Jul 2006 17:09:46 -0000 Received: (qmail 23511 invoked by uid 48); 25 Jul 2006 17:09:13 -0000 Date: Tue, 25 Jul 2006 17:09:00 -0000 Subject: [Bug fortran/28484] New: system_clock with real-type count_rate does not compile X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tobias dot burnus at physik dot fu-berlin dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg01947.txt.bz2 List-Id: 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