http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48876
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-07-30 21:33:14 UTC --- Author: tkoenig Date: Sat Jul 30 21:33:11 2011 New Revision: 176963 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176963 Log: 2011-07-30 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from trunk. PR fortran/48876 * expr.c (gfc_simplify_expr): If end of a string is less than zero, set it to zero. 2011-07-30 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from trunk. PR fortran/48876 * gfortran.dg/string_5.f90: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/string_5.f90 Modified: branches/gcc-4_6-branch/gcc/fortran/ChangeLog branches/gcc-4_6-branch/gcc/fortran/expr.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog