2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/71067
* decl.c (match_data_constant): On error, set 'result' to NULL.
2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/71067
* gfortran.dg/pr71067_1.f90: New test.
* gfortran.dg/pr71067_2.f90: Ditto.
From-SVN: r238842
+2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/71067
+ * decl.c (match_data_constant): On error, set 'result' to NULL.
+
2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/71799
{
gfc_error ("Symbol %qs must be a PARAMETER in DATA statement at %C",
name);
+ *result = NULL;
return MATCH_ERROR;
}
else if (dt_sym && gfc_fl_struct (dt_sym->attr.flavor))
+2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/71067
+ * gfortran.dg/pr71067_1.f90: New test.
+ * gfortran.dg/pr71067_2.f90: Ditto.
+
2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/vec-extract-1.c: New test.
--- /dev/null
+program p
+ integer :: i = 0
+ integer :: z(2)
+ data z /2*i/ ! { dg-error "must be a PARAMETER in DATA" }
+end
--- /dev/null
+! { dg-do compile }
+program p
+ integer :: a(2), b(2), c(2)
+ data a /2*b1'/ ! { dg-error "must be a PARAMETER in DATA" }
+ data b /2*o1' ! { dg-error "must be a PARAMETER in DATA" }
+ data c /2*z1 ! { dg-error "must be a PARAMETER in DATA" }
+end