[PATCH] fortran/39893 -- fix segfault caused by invalid code

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Apr 26 19:28:00 GMT 2009


On Sun, Apr 26, 2009 at 09:05:22PM +0200, Daniel Franke wrote:
> On Sunday 26 April 2009 20:15:11 Steve Kargl wrote:
> > 2009-04-26  Steven G. Kargl  <kargl@gcc.gnu.org>
> >
> > 	PR fortran/39893
> > 	* gfortran.dg/assumed_charlen_dummy.f90: New Test.
> >
> >
> > 2009-04-26  Steven G. Kargl  <kargl@gcc.gnu.org>
> >
> > 	PR fortran/39893
> > 	fortran/data.c (gfc_assign_data_value): If the lvalue is an
> > 	assumed character length entity in a data statement, then
> > 	return FAILURE to prevent segmentation fault.
> >
> > OK for trunk and 4.4?
> 
> In the testcase: s/porivided/provided
> 
> Otherwise ok.
> 

Thanks.

Committed as revision 146816.

I'll backport to 4.4 in a week.

-- 
Steve



More information about the Fortran mailing list