Hi,
all gfortran versions from 4.1.x thru 4.5 refuse to compile the
following program with -fdefault-real-8:
program gfcbug90
real :: t(2)
print *, etime (t)
end program gfcbug90
% gfc4x gfcbug90.f90 -fdefault-real-8
gfcbug90.f90:3.18:
print *, etime (t)
1
Error: 'x' argument of 'etime' intrinsic at (1) must be of kind 4
No problem with e.g. ifort or sunf95.
Cheers,
-ha
--
Summary: ETIME not useable with -fdefault-real-8
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41712