re PR fortran/37099 (Wrong results when comparing a character array to a character...
authorDaniel Kraft <d@domob.eu>
Thu, 4 Sep 2008 19:16:13 +0000 (21:16 +0200)
committerDaniel Kraft <domob@gcc.gnu.org>
Thu, 4 Sep 2008 19:16:13 +0000 (21:16 +0200)
commitd5551618259aa0add9a31cf9dcbb4810748ad7a5
tree9cb63f458e65afa3bc35cb56ef1a431fc14452ea
parent5feec5c1de0a23ba2cd8ddf98617b02c033b0b03
re PR fortran/37099 (Wrong results when comparing a character array to a character expression)

2008-09-04  Daniel Kraft  <d@domob.eu>

* PR fortran/37099
* expr.c (simplify_const_ref): Update expression's character length
when pulling out a substring reference.

2008-09-04  Daniel Kraft  <d@domob.eu>

PR fortran/37099
* gfortran.dg/string_compare_1.f90: New text.
* gfortran.dg/string_compare_2.f90: New text.
* gfortran.dg/string_compare_3.f90: New text.

From-SVN: r139997
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/string_compare_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/string_compare_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/string_compare_3.f90 [new file with mode: 0644]