2016-11-22 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78479
* expr.c (gfc_apply_init): Allocate a charlen if needed.
2016-11-22 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78479
* gfortran.dg/char_component_initializer_3.f90: New test.
From-SVN: r242725
+2016-11-22 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/78479
+ * expr.c (gfc_apply_init): Allocate a charlen if needed.
+
2016-11-22 Janus Weil <janus@gcc.gnu.org>
PR fortran/78443
{
gfc_set_constant_character_len (len, ctor->expr,
has_ts ? -1 : first_len);
- ctor->expr->ts.u.cl->length = gfc_copy_expr (ts->u.cl->length);
+ if (!ctor->expr->ts.u.cl)
+ ctor->expr->ts.u.cl
+ = gfc_new_charlen (gfc_current_ns, ts->u.cl);
+ else
+ ctor->expr->ts.u.cl->length
+ = gfc_copy_expr (ts->u.cl->length);
}
}
}
+2016-11-22 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/78479
+ * gfortran.dg/char_component_initializer_3.f90: New test.
+
2016-11-22 Jakub Jelinek <jakub@redhat.com>
PR target/78451
--- /dev/null
+! { dg-do compile }
+program p
+ type t
+ character(3) :: c(1) = 'a' // ['b']
+ end type
+end