2011-07-17 Tobias Burnus <burnus@net-b.de>
PR fortran/49624
* expr.c (gfc_check_pointer_assign): Fix checking for invalid
pointer bounds.
2011-07-17 Tobias Burnus <burnus@net-b.de>
PR fortran/49624
* gfortran.dg/pointer_remapping_7.f90: New.
From-SVN: r176370
+2011-07-17 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/49624
+ * expr.c (gfc_check_pointer_assign): Fix checking for invalid
+ pointer bounds.
+
2011-07-16 Tobias Burnus <burnus@net-b.de>
* expr.c (gfc_ref_this_image): New function.
upper bounds are present, we may do rank remapping. */
for (dim = 0; dim < ref->u.ar.dimen; ++dim)
{
- if (!ref->u.ar.start[dim])
+ if (!ref->u.ar.start[dim]
+ || ref->u.ar.dimen_type[dim] != DIMEN_RANGE)
{
gfc_error ("Lower bound has to be present at %L",
&lvalue->where);
+2011-07-17 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/49624
+ * gfortran.dg/pointer_remapping_7.f90: New.
+
2011-07-16 Jason Merrill <jason@redhat.com>
* lib/prune.exp (prune_gcc_output): Prune "In substitution" too.
--- /dev/null
+! { dg-do compile }
+!
+! PR fortran/49624
+!
+ integer, target :: A(100)
+ integer,pointer :: P(:,:)
+ p(10,1:) => A ! { dg-error "Lower bound has to be present" }
+ end