]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/41043 (virtual memory exhausted: Cannot allocate memory)
authorRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Feb 2010 09:39:26 +0000 (09:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Feb 2010 09:39:26 +0000 (09:39 +0000)
2010-02-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/41043
* gfortran.dg/pr41043.f90: New testcase.
* gcc.dg/Wstrict-overflow-18.c: XFAIL.

From-SVN: r156824

gcc/testsuite/gfortran.dg/pr41043.f90 [new file with mode: 0644]

diff --git a/gcc/testsuite/gfortran.dg/pr41043.f90 b/gcc/testsuite/gfortran.dg/pr41043.f90
new file mode 100644 (file)
index 0000000..fab428b
--- /dev/null
@@ -0,0 +1,11 @@
+! { dg-do compile }
+! { dg-options "-O2" }
+      subroutine foo
+      implicit none
+
+      integer :: i
+
+      call gee_i(int(i**huge(0_8),kind=kind(i)))
+
+      end subroutine foo
+