2018-01-17 Harald Anlauf <anlauf@gmx.de>
PR fortran/83864
* expr.c (add_init_expr_to_sym): Do not dereference NULL pointer.
2018-01-17 Harald Anlauf <anlauf@gmx.de>
PR fortran/83864
* gfortran.dg/pr83864.f90: New test.
From-SVN: r256837
+2018-01-17 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/83864
+ * expr.c (add_init_expr_to_sym): Do not dereference NULL pointer.
+
2018-01-17 Harald Anlauf <anlauf@gmx.de>
PR fortran/83874
gfc_set_constant_character_len (len, init, -1);
else if (init
&& init->ts.type == BT_CHARACTER
- && init->ts.u.cl
+ && init->ts.u.cl && init->ts.u.cl->length
&& mpz_cmp (ts->u.cl->length->value.integer,
init->ts.u.cl->length->value.integer))
{
+2018-01-17 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/83864
+ * gfortran.dg/pr83864.f90: New test.
+
2018-01-17 Jeff Law <law@redhat.com>
PR testsuite/83883
--- /dev/null
+! { dg-do run }
+! PR fortran/83864
+!
+! Derived from PR by Contributed by Gerhard Steinmetz <gscfq@t-online.de>
+!
+program p
+ implicit none
+ type t
+ character :: c(3) = transfer('abc','z',3)
+ end type t
+ type(t) :: x
+ if (any (x%c /= ["a", "b", "c"])) call abort ()
+end