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 #4 from domob at gcc dot gnu dot org  2008-09-08 07:57 -------
Subject: Bug 37099

Author: domob
Date: Mon Sep  8 07:55:49 2008
New Revision: 140101

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140101
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:
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/string_compare_1.f90
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/string_compare_2.f90
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/string_compare_3.f90
Modified:
    branches/gcc-4_3-branch/gcc/fortran/ChangeLog
    branches/gcc-4_3-branch/gcc/fortran/expr.c
    branches/gcc-4_3-branch/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]