2008-01-10 Paul Thomas <pault@gcc.gnu.org>
commit88137677e0fb2636a5acc7d19de904d2396fcfc9
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Jan 2008 19:10:48 +0000 (10 19:10 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Jan 2008 19:10:48 +0000 (10 19:10 +0000)
tree859fbc40552efe9c0f56f7d86b1c9c1208aed0f1
parente84f5a2cf1fe329667a2c51a6665fe9aad5af0c2
2008-01-10  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-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34396
* gfortran.dg/bounds_check_12.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131448 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bounds_check_12.f90 [new file with mode: 0644]