PR fortran/13201
* gfortran.dg/shape_1.f90: New test.
From-SVN: r84403
+2004-07-09 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ PR fortran/13201
+ * gfortran.dg/shape_1.f90: New test.
+
2004-07-09 Zack Weinberg <zack@codesourcery.com>
Andrew Pinski <apinski@apple.com>
--- /dev/null
+! { dg-do compile }
+! PR 13201 we used to not give an error in those cases
+subroutine foo(n)
+ integer, parameter :: a(n) = 1 ! { dg-error "cannot be automatic" "automatic shape" }
+ integer, parameter :: z(:) = (/ 1,2,3 /) ! { dg-error "cannot be automatic" "assumed shape" }
+end subroutine