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/29067] [4.1/4.2 only] gfc_resolve_expr(): Bad expression type



------- Comment #20 from fxcoudert at gcc dot gnu dot org  2006-11-03 14:26 -------
Subject: Bug 29067

Author: fxcoudert
Date: Fri Nov  3 14:25:56 2006
New Revision: 118457

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118457
Log:
        PR fortran/29067

        * decl.c (gfc_set_constant_character_len): NULL-terminate the
        character constant string.
        * data.c (create_character_intializer): Likewise.
        * expr.c (gfc_simplify_expr): NULL-terminate the substring
        character constant.
        * primary.c (match_hollerith_constant): NULL-terminate the
        character constant string.

        * gfortran.dg/pr29067.f: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/pr29067.f
      - copied unchanged from r118456,
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/pr29067.f
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/data.c
    branches/gcc-4_1-branch/gcc/fortran/decl.c
    branches/gcc-4_1-branch/gcc/fortran/expr.c
    branches/gcc-4_1-branch/gcc/fortran/primary.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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