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] PR34396 - Length of substrings defined by expressions not correctly computed in constructors


Paul Richard Thomas wrote:
> Bootstrapped and regtested on x86_ia64/FC8 - OK for trunk?
>   
OK. Thanks for the patch.

Tobias

> 2008-01-09  Paul Thomas  <pault@gcc.gnu.org>
>
> 	PR fortran/34396
> 	* trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
> 	to assign strings and perform bounds checks on the string length.
> 	(get_array_ctor_strlen): Remove bounds checking.
> 	(gfc_trans_array_constructor): Initialize string length checking.
> 	* trans-array.h : Add prototype for gfc_trans_string_copy.
>
> 2008-01-09  Paul Thomas  <pault@gcc.gnu.org>
>
> 	PR fortran/34396
> 	* gfortran.dg/bounds_check_12.f90: New test.
>   


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