From cd2e6e3d2c8b29849ad49a084c879da8c4f86ddc Mon Sep 17 00:00:00 2001 From: jvdelisle Date: Wed, 14 Apr 2010 05:27:29 +0000 Subject: [PATCH] 2010-04-14 Jerry DeLisle PR fortran/43747 gfortran.dg/initialization_24.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158291 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/initialization_24.f90 | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/initialization_24.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 04274bad79c..2981f07d8dd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-04-14 Jerry DeLisle + + PR fortran/43747 + gfortran.dg/initialization_24.f90: New test. + 2010-04-13 Jason Merrill * g++.dg/cpp0x/lambda/lambda-deduce2.C: Remove. diff --git a/gcc/testsuite/gfortran.dg/initialization_24.f90 b/gcc/testsuite/gfortran.dg/initialization_24.f90 new file mode 100644 index 00000000000..4c203312be4 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/initialization_24.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! PR43747 ICE in find_array_section, at fortran/expr.c:1551 +! Test case by Dominique d'Humieres +INTEGER, PARAMETER ::N=65536 +INTEGER, PARAMETER ::I(N)=(/(MOD(K,2),K=1,N)/)!{ dg-error "number of elements" } +INTEGER, PARAMETER ::M(N)=I(N:1:-1) +print *, I(1), M(1), I(N), M(N) +END + -- 2.11.4.GIT