This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r118338 - in /trunk/gcc: fortran/data.c fortran...
- From: fxcoudert at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 31 Oct 2006 20:15:23 -0000
- Subject: r118338 - in /trunk/gcc: fortran/data.c fortran...
Author: fxcoudert
Date: Tue Oct 31 20:15:22 2006
New Revision: 118338
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118338
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:
trunk/gcc/testsuite/gfortran.dg/pr29067.f
Modified:
trunk/gcc/fortran/data.c
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/primary.c
trunk/gcc/testsuite/ChangeLog