re PR fortran/48876 (ICE when initializing character variable with zero-length string)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 30 Jul 2011 18:17:55 +0000 (18:17 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 30 Jul 2011 18:17:55 +0000 (18:17 +0000)
commit7d0300ed911d8dfec7943c88af83ed4e4563a5d1
tree18675d430cf2966640ff55d153fa65f82065dd15
parentb3421a06f981f875e0aee932b4f80c52dcb37e72
re PR fortran/48876 (ICE when initializing character variable with zero-length string)

2011-07-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

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  <tkoenig@gcc.gnu.org>

PR fortran/48876
* gfortran.dg/string_5.f90:  New test.

From-SVN: r176961
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/string_5.f90 [new file with mode: 0644]