Commit 32e89beb by Tobias Schlüter Committed by Tobias Schlüter

re PR fortran/13201 (PARAMETER variables of nonconstant shape are accepted)

PR fortran/13201
* gfortran.dg/shape_1.f90: New test.

From-SVN: r84403
parent 9affb2c7
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>
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment