This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29067] [4.1/4.2 only] gfc_resolve_expr(): Bad expression type
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2006 14:26:13 -0000
- Subject: [Bug fortran/29067] [4.1/4.2 only] gfc_resolve_expr(): Bad expression type
- References: <bug-29067-13243@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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