This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR34396 - Length of substrings defined by expressions not correctly computed in constructors
- From: Tobias Burnus <burnus at net-b dot de>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Thu, 10 Jan 2008 10:53:08 +0100
- Subject: Re: [Patch, fortran] PR34396 - Length of substrings defined by expressions not correctly computed in constructors
- References: <339c37f20801091541je1742b5v2355cb9697dafda3@mail.gmail.com>
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.
>