This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48876] ICE when initializing character variable with zero-length string


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  <tkoenig@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  <tkoenig@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]