+2006-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+
+ PR fortran/29713
+ * expr.c (gfc_simplify_expr): Correct memory allocation.
+
2006-11-02 Brooks Moses <brooks.moses@codesourcery.com>
* error.c (show_locus): Remove "In file" from error messages.
gfc_extract_int (p->ref->u.ss.start, &start);
start--; /* Convert from one-based to zero-based. */
gfc_extract_int (p->ref->u.ss.end, &end);
- s = gfc_getmem (end - start + 1);
+ s = gfc_getmem (end - start + 2);
memcpy (s, p->value.character.string + start, end - start);
s[end-start+1] = '\0'; /* TODO: C-style string for debugging. */
gfc_free (p->value.character.string);
+2006-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+
+ PR libfortran/29713
+ * gfortran.dg/pr29713.f90: New test.
+
2006-11-03 J"orn Rennecke <joern.rennecke@st.com>
* testsuite/gcc.c-torture/execute/arith-rand-ll.c:
2006-11-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/27895
- * gcc/testsuite/gfortran.dg/zero_sized_1.f90: Uncomment checks
- for RESHAPE.
+ * gfortran.dg/zero_sized_1.f90: Uncomment checks for RESHAPE.
2006-11-02 Brooks Moses <brooks.moses@codesourcery.com>
--- /dev/null
+! { dg-do compile }
+ character*2 a
+ character*4 b
+ parameter (a="12")
+ parameter (b = a(1:2))
+ end