bounds_check_12.f90
902 Bytes
-
re PR fortran/34396 (Length of substrings defined by expressions not correctly… · 32be9f94
re PR fortran/34396 (Length of substrings defined by expressions not correctly computed in constructors) 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. From-SVN: r131448
Paul Thomas committed