2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88155
* primary.c (gfc_match_structure_constructor): Set the locus of
an expression to avoid a NULL pointer dereference.
2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88155
* gfortran.dg/pr70870_1.f90: Update testcase to use -std=gnu.
* gfortran.dg/pr88155.f90: New test.
From-SVN: r267041
+2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/88155
+ * primary.c (gfc_match_structure_constructor): Set the locus of
+ an expression to avoid a NULL pointer dereference.
+
2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88249
e = gfc_get_expr ();
e->symtree = symtree;
e->expr_type = EXPR_FUNCTION;
+ e->where = gfc_current_locus;
gcc_assert (gfc_fl_struct (sym->attr.flavor)
&& symtree->n.sym->attr.flavor == FL_PROCEDURE);
+2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/88155
+ * gfortran.dg/pr70870_1.f90: Update testcase to use -std=gnu.
+ * gfortran.dg/pr88155.f90: New test.
+
2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88249
! { dg-do compile }
+! { dg-options "-std=gnu" }
! PR fortran/70870
! Contributed by Vittorio Zecca <zeccav at gmail dot com >
type t
--- /dev/null
+! { dg-do compile }
+program p
+ type t
+ integer :: a
+ end type
+ type(t) :: x
+ data x /t()1/ ! { dg-error "No initializer for component" }
+ print *, x
+end