[Bug fortran/29067] [4.1/4.2 only] gfc_resolve_expr(): Bad expression type

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Nov 3 12:29:00 GMT 2006



------- Comment #19 from fxcoudert at gcc dot gnu dot org  2006-11-03 12:29 -------
Subject: Bug 29067

Author: fxcoudert
Date: Fri Nov  3 12:28:57 2006
New Revision: 118456

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118456
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_2-branch/gcc/testsuite/gfortran.dg/pr29067.f
      - copied unchanged from r118338,
trunk/gcc/testsuite/gfortran.dg/pr29067.f
Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/data.c
    branches/gcc-4_2-branch/gcc/fortran/decl.c
    branches/gcc-4_2-branch/gcc/fortran/expr.c
    branches/gcc-4_2-branch/gcc/fortran/primary.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list