From 32e89bebc67451505f07ba857cf96157f618c7e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Schl=C3=BCter?= Date: Fri, 9 Jul 2004 23:32:57 +0200 Subject: [PATCH] re PR fortran/13201 (PARAMETER variables of nonconstant shape are accepted) PR fortran/13201 * gfortran.dg/shape_1.f90: New test. From-SVN: r84403 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/shape_1.f90 | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/shape_1.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7548279c09a..915f8ce0f80 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-07-09 Tobias Schlueter + + PR fortran/13201 + * gfortran.dg/shape_1.f90: New test. + 2004-07-09 Zack Weinberg Andrew Pinski diff --git a/gcc/testsuite/gfortran.dg/shape_1.f90 b/gcc/testsuite/gfortran.dg/shape_1.f90 new file mode 100644 index 00000000000..aaf943f6294 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/shape_1.f90 @@ -0,0 +1,6 @@ +! { 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 -- 2.30.2