summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-14 05:27:29 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-14 05:27:29 +0000
commitcd2e6e3d2c8b29849ad49a084c879da8c4f86ddc (patch)
tree75ea5ef0ac22715abe2edba5c6dd82bc9bdde3af /gcc
parentee8fe25b192a17e5fe25bd319ece957517ad39c4 (diff)
downloadgcc-cd2e6e3d2c8b29849ad49a084c879da8c4f86ddc.tar.gz
2010-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/initialization_24.f909
2 files changed, 14 insertions, 0 deletions
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 <jvdelisle@gcc.gnu.org>
+
+ PR fortran/43747
+ gfortran.dg/initialization_24.f90: New test.
+
2010-04-13 Jason Merrill <jason@redhat.com>
* 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
+