OSDN Git Service

2010-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 05:27:29 +0000 (05:27 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 05:27:29 +0000 (05:27 +0000)
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
gcc/testsuite/gfortran.dg/initialization_24.f90 [new file with mode: 0644]

index 04274ba..2981f07 100644 (file)
@@ -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 (file)
index 0000000..4c20331
--- /dev/null
@@ -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
+