This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29067] Internal Error: 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: 31 Oct 2006 20:15:42 -0000
- Subject: [Bug fortran/29067] Internal Error: 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 #18 from fxcoudert at gcc dot gnu dot org 2006-10-31 20:15 -------
Subject: Bug 29067
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29067