This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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, F08] PR 45290: pointer initialization


Hi all,

the attached patch fixes one remaining problem with F08 (non-NULL)
pointer initialization: The F08 standard forbids using pointers as
initialization target in pointer initialization statements, which we
failed to detect up to now. Implementation is straightforward, once
you know how to read the standard in this matter. The patch was
regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2011-02-07  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/45290
	* expr.c (gfc_check_assign_symbol): Reject pointers as pointer
	initialization target.


2011-02-07  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/45290
	* gfortran.dg/pointer_init_6.f90: New.

Attachment: pr45290.diff
Description: Binary data

Attachment: pointer_init_6.f90
Description: Binary data


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