This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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,
Dick!

Cheers

Paul

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
	scalars.

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

	PR fortran/38917
	PR fortran/38918
	* gfortran.dg/data_pointer_1.f90: New test.

Attachment: submit.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]