[PATCH, gfortran] Fix initialization of arrays of strings

Feng Wang wf_cs@yahoo.com
Thu Jul 14 02:11:00 GMT 2005


Committed to mainline and 4.0.2. A new patch is attached. Approved by Steve
Kargl off the list.

Steve, I changed the patch mailed to you a little.

--- Steve Kargl <sgk@troutmask.apl.washington.edu>дµÀ:

> On Tue, Jul 12, 2005 at 08:32:48AM +0800, Feng Wang wrote:
> > 
> > All the 'main  ' memory is allocated during gfc_set_constant_character_len
> > call. I mean that resolve_character_array_constructor does not call
> > gfc_get_charlen to set ts.cl if the constractor's expr is not of
> EXPR_CONSTANT
> > (a(2)). This cause an ICE when invoking gfc_free_expr (init->ts.cl->length)
> in
> > add_init_expr_to_sym. The memory I said is the memory of (gfc_charlen).
> > 
> 
> Is the attached patch acceptable to you?
> 


Best Regards,
Feng Wang

--
Creative Compiler Research Group,
National University of Defense Technology, China.


	

	
		
___________________________________________________________ 
ÑÅ»¢Ãâ·ÑGÓÊÏ䣭ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä
http://cn.mail.yahoo.com/?id=77071
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cl.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050714/3f5d1691/attachment.ksh>


More information about the Gcc-patches mailing list