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]

Re: [PATCH] fortran/20845 -- default initialization of derived types


Steve Kargl wrote:

The attached patch was bootstrapped and regression tested on
i386-*-freebsd.  The patch revealed 2 invalid test programs,
which are fixed.  The patch implements the 4th constraint in
section 11.3.

2006-01-28  Steven G. Kargl  <kargls@comcast.net>
           Paul Thomas  <pault@gcc.gnu.org>

	* resolve.c (resolve_symbol): Default initialization of derived type
	component reguires the SAVE attribute.


2006-01-28 Steven G. Kargl <kargls@comcast.net>


	* gfortran.dg/char_result_11.f90: Add SAVE.
	* gfortran.dg/der_pointer_4.f90: Ditto.
	* gfortran.dg/default_initialization.f90: New test.



OK.

I'll add references to the standard in mine as well. I have been doing it but omitted it on this occasion.

Thanks

Paul


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