2011-07-23 Janus Weil <janus@gcc.gnu.org>
PR fortran/49708
* resolve.c (resolve_allocate_expr): Fix diagnostics for pointers.
2011-07-23 Janus Weil <janus@gcc.gnu.org>
PR fortran/49708
* gfortran.dg/allocate_error_3.f90: New.
From-SVN: r176688
+2011-07-23 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/49708
+ * resolve.c (resolve_allocate_expr): Fix diagnostics for pointers.
+
2011-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
}
}
- if (pointer || dimension == 0)
+ if (dimension == 0)
return SUCCESS;
/* Make sure the next-to-last reference node is an array specification. */
+2011-07-23 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/49708
+ * gfortran.dg/allocate_error_3.f90: New.
+
2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR debug/47393
--- /dev/null
+! { dg-do compile }
+!
+! PR 49708: [4.5/4.6/4.7 Regression] ICE with allocate and no dimensions
+!
+! Contributed by <fnordxyz@yahoo.com>
+
+ real, pointer :: x(:)
+ allocate(x) ! { dg-error "Array specification required" }
+end