[Patch, fortran] PR38917 and PR38918 - DATA and pointers

Paul Richard Thomas paul.richard.thomas@gmail.com
Thu Jan 22 20:45:00 GMT 2009

We were not doing very well with DATA and pointers up until now.  This
patch fixes that.  As it happens the fix is trivial/obvious.

Bootstrapped and regtested on FC9/x86_64 - OK for.... trunk/4.5?

The reason that I ask is that this patch is highly unobtrusive.. it's
even right:.  Also, if we are honest, there are not many users of this
corner of f95:-)

I would like to take this opportunity to thank the reporter, Dick
Hendrickson.  Not only has Dick been a frequent reporter of gfortran
bugs but.... well, let me say that he gives us free indirect access to
a bug finding resource and reduces the bugs beautifully - Thanks,



2009-01-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38917
	* expr.c (gfc_check_assign): Allow pointer components when
	checking for NULL.

	PR fortran/38918
	* resolve.c (check_data_variable): Treat pointer arrays with

2009-01-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38917
	PR fortran/38918
	* gfortran.dg/data_pointer_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: application/octet-stream
Size: 1798 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090122/888dc03c/attachment.obj>

More information about the Gcc-patches mailing list