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/37099] [4.3, 4.4 regression] Wrong results when comparing a character array to a character expression



------- Comment #3 from domob at gcc dot gnu dot org  2008-09-04 19:17 -------
Subject: Bug 37099

Author: domob
Date: Thu Sep  4 19:16:13 2008
New Revision: 139997

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

Added:
    trunk/gcc/testsuite/gfortran.dg/string_compare_1.f90
    trunk/gcc/testsuite/gfortran.dg/string_compare_2.f90
    trunk/gcc/testsuite/gfortran.dg/string_compare_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37099


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