[Patch, Fortran] PR37253: Segmentation fault with procedure pointer

Janus Weil jaydub66@googlemail.com
Fri Aug 29 07:45:00 GMT 2008


Hi all,

here is my fix for PR37253 together with Dominique's test case. The
problem was that some symbol attributes were not saved to the .mod
file (i.e. attr.procedure and attr.proc_ptr). The patch is pretty
obvious. Ok for trunk after regtesting (which I assume should go
fine)?

Cheers,
Janus



2008-08-28  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/37253
	* module.c (ab_attribute,attr_bits,mio_symbol_attribute): Take care of
	saving attr.procedure and attr.proc_ptr to the module file.


2008-08-28  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/37253
	* gfortran.dg/proc_ptr_10.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr37253.diff
Type: text/x-patch
Size: 1492 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080829/2313598f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc_ptr_10.f90
Type: application/octet-stream
Size: 524 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080829/2313598f/attachment.obj>


More information about the Fortran mailing list