]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/primary.c
re PR fortran/29067 (gfc_resolve_expr(): Bad expression type)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Tue, 31 Oct 2006 20:15:22 +0000 (21:15 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 31 Oct 2006 20:15:22 +0000 (20:15 +0000)
commit150675a88bae488e66055ad2a1eba0309ecabce3
tree1024583b95a9dd9e2598bb3e446caa4624ef6e9f
parent70198b9f22c93aeab38aacafe9e2aec87d126813
re PR fortran/29067 (gfc_resolve_expr(): Bad expression type)

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.

From-SVN: r118338
gcc/fortran/data.c
gcc/fortran/decl.c
gcc/fortran/expr.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr29067.f [new file with mode: 0644]