+2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/69867
+ * decl.c (build_struct): Ensure that pointers point to something.
+
2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/69962
if (c->initializer->expr_type == EXPR_CONSTANT)
gfc_set_constant_character_len (len, c->initializer, -1);
- else if (mpz_cmp (c->ts.u.cl->length->value.integer,
- c->initializer->ts.u.cl->length->value.integer))
+ else if (c->initializer
+ && c->initializer->ts.u.cl
+ && mpz_cmp (c->ts.u.cl->length->value.integer,
+ c->initializer->ts.u.cl->length->value.integer))
{
gfc_constructor *ctor;
ctor = gfc_constructor_first (c->initializer->value.constructor);