[Patch, Fortran] PR 46100 - Allow pointer-function actuals in variable-definition contexts

Tobias Burnus burnus@net-b.de
Wed Oct 20 22:05:00 GMT 2010


  In Fortran 2008, a pointer-function expression counts as variable. 
Thus, for a pointer-function "f()" and a procedure "sub" with has a 
nonpointer dummy, one can use
   call two (f())
even if the dummy argument of "sub" is used in a variable-definition 
context.

Build and regtested on x86-64-linux.
OK for the trunk?

Tobias

PS: F2008 also allows, e.g. "f() = 7" - but that's not yet supported by 
gfortran.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptr-func.diff
Type: text/x-patch
Size: 2537 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101020/537936ae/attachment.bin>


More information about the Gcc-patches mailing list