[Patch, Fortran] PR 38152: [4.4 Regression] procedure pointers as module variables
Janus Weil
janus@gcc.gnu.org
Fri Jan 16 10:27:00 GMT 2009
Hi all,
here is a patch for PR 38152, which fixes procedure pointers as module
variables. It is a regression in the way that 4.3 aborted gracefully,
stating that procptrs are not implemented, while 4.4 produces a nasty
ICE.
The patch is regression-tested on i686-pc-linux-gnu. Is this ok for
trunk, or should I wait for 4.5?
Thanks to Daniel for reporting this ...
Cheers,
Janus
2009-01-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/38152
* expr.c (gfc_check_pointer_assign): Allow use-associated procedure
pointers as lvalue.
* trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
Enable procedure pointers as module variables.
2009-01-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/38152
* gfortran.dg/proc_ptr_13.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr38152.diff
Type: text/x-patch
Size: 2343 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090116/dc120d9f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc_ptr_13.f90
Type: application/octet-stream
Size: 535 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090116/dc120d9f/attachment.obj>
More information about the Fortran
mailing list