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 #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-07-30 18:17:57 UTC ---
Author: tkoenig
Date: Sat Jul 30 18:17:55 2011
New Revision: 176961

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176961
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/string_5.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/testsuite/ChangeLog


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