aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2011-07-19 14:38:59 +0200
committerJanus Weil <janus@gcc.gnu.org>2011-07-19 14:38:59 +0200
commitb21a544bb1a94f29adc4fc812cda0766b9a048e9 (patch)
tree82ac153c60a4d3190261bd322138ca4c235283ba /gcc/testsuite
parent1b14d8150ed4a7194e3d63b262454e9b9446fe95 (diff)
downloadgcc-b21a544bb1a94f29adc4fc812cda0766b9a048e9.zip
gcc-b21a544bb1a94f29adc4fc812cda0766b9a048e9.tar.gz
gcc-b21a544bb1a94f29adc4fc812cda0766b9a048e9.tar.bz2
re PR fortran/49708 (ICE with allocate and no dimensions)
2011-07-19 Janus Weil <janus@gcc.gnu.org> PR fortran/49708 * resolve.c (resolve_allocate_expr): Fix diagnostics for pointers. 2011-07-19 Janus Weil <janus@gcc.gnu.org> PR fortran/49708 * gfortran.dg/allocate_error_3.f90: New. From-SVN: r176447
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/allocate_error_3.f909
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d87ce8d74..4e77dec 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-19 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/49708
+ * gfortran.dg/allocate_error_3.f90: New.
+
2011-07-19 Richard Guenther <rguenther@suse.de>
* gcc.dg/tree-ssa/bool-10.c: Adjust expected pattern.
diff --git a/gcc/testsuite/gfortran.dg/allocate_error_3.f90 b/gcc/testsuite/gfortran.dg/allocate_error_3.f90
new file mode 100644
index 0000000..7616caa
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/allocate_error_3.f90
@@ -0,0 +1,9 @@
+! { 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