2019-12-12 Harald Anlauf <anlauf@gmx.de>
PR fortran/92898
* check.c (gfc_check_is_contiguous): Simplify check to handle
arbitrary NULL() argument.
PR fortran/92898
* gfortran.dg/pr92898.f90: New test.
From-SVN: r279314
+2019-12-12 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/92898
+ * check.c (gfc_check_is_contiguous): Simplify check to handle
+ arbitrary NULL() argument.
+
2019-12-11 Jakub Jelinek <jakub@redhat.com>
PR fortran/92899
PR fortran/92897
* array.c (gfc_set_array_spec): Remove invalid assert() triggered
by invalid Fortran code.
-
+
2019-12-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/91643
bool
gfc_check_is_contiguous (gfc_expr *array)
{
- if (array->expr_type == EXPR_NULL
- && array->symtree->n.sym->attr.pointer == 1)
+ if (array->expr_type == EXPR_NULL)
{
gfc_error ("Actual argument at %L of %qs intrinsic shall be an "
"associated pointer", &array->where, gfc_current_intrinsic);
+2019-12-12 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/92898
+ * gfortran.dg/pr92898.f90: New test.
+
2019-12-12 Sudakshina Das <sudi.das@arm.com>
PR testsuite/92870
--- /dev/null
+! { dg-do compile }
+! PR fortran/92898
+! Code contributed by Gerhard Steinmetz
+program p
+ print *, is_contiguous (null()) ! { dg-error "shall be an associated" }
+end