[PATCH] PR fortran/33229 -- Fix intrinsic subroutine as function call.

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Sep 5 20:58:00 GMT 2008


Regression tested on x86_64-*-freebsd8.0.  There are no new regressions.

The code and ChangeLog are fairly self-explanatory.

2008-09-04  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/33229
	* resolve.c (resolve_function): An intrinsic subroutine should not be
	called as a function.

2008-09-04  Steven G. Kargl  <kargls@comcast.net>

    PR fortran/33229
	* gfortran.dg/intrinsic_subroutine.f90: New test.


-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33229.diff
Type: text/x-diff
Size: 682 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080905/d50af628/attachment.bin>
-------------- next part --------------
! { dg-do compile }
! PR 33229
implicit none
intrinsic cpu_time
real :: time
print *, CPU_TIME(TIME)  ! { dg-error "intrinsic subroutine" }
end



More information about the Fortran mailing list