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/20845 -- default initialization of derived types


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.

-- 
Steve

Attachment: pr20845.diff
Description: Text document

Attachment: default_initialization.f90
Description: Text document


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