[Patch,Fortran] PR 40580 - add -fcheck=pointer for some actual argument checks
Paul Richard Thomas
paul.richard.thomas@gmail.com
Tue Jun 30 00:06:00 GMT 2009
OK'ed after discussion on #gfortran.
Thanks
Paul
On Mon, Jun 29, 2009 at 9:57 PM, Tobias Burnus<burnus@net-b.de> wrote:
> Hello,
>
> after spending some time today to pinpoint a problem, I decided having a
> -fcheck=pointer makes sense. The checking happens if one passes an
> ALLOCATABLE or POINTER (or proc-pointer) actual argument to a dummy
> which is not allocatable nor a pointer. In that case, the actual
> argument needs to be allocated / associated, which this patch checks.
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
> Tobias
>
> PS: The patch contains two other small changes; one to *def is trivial
> and one to *.texi brings the words closer to the standard and describes
> better what is actually done (e.g. copy-in/out is not really call by
> reference, though the effect is [almost] the same).
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy
More information about the Fortran
mailing list