[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate
Joost.VandeVondele at mat dot ethz.ch
gcc-bugzilla@gcc.gnu.org
Tue Dec 30 10:05:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432
--- Comment #9 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
reading the standard, indeed it seems like count_rate can be real as well...
same rules here *4 -> _4 *8 -> _8.
As a side remark the following generates a slightly outdated error:
> cat test.f90
COMPLEX(KIND=4) :: count_rate
CALL SYSTEM_CLOCK(count_rate=count_rate)
END
> gfortran test.f90
test.f90:2:29:
CALL SYSTEM_CLOCK(count_rate=count_rate)
1
Error: ‘count_rate’ argument of ‘system_clock’ intrinsic at (1) must be INTEGER
should be 'INTEGER or REAL'.
count and count_max are still integer.
More information about the Gcc-bugs
mailing list