This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/31974] [4.3 regression]: Many libgomp failures



------- Comment #4 from hjl at lucon dot org  2007-05-19 16:12 -------
Here is a simple testcase. It fails on Linux/x86-64 and Linux/ia64. I think
it may fail on all 64bit systems:

[hjl@gnu-26 31974]$ cat foo.f90
! { dg-do run }

  call test
contains
  subroutine foo (n)
    integer :: n
    integer :: p, q
    character (len = n) :: s
    character (len = n), dimension (5, 3:n) :: v
    s = 'P'
    forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = '!'
  end subroutine foo

  subroutine test
    call foo (7)
  end subroutine test
end
[hjl@gnu-26 31974]$ make
/export/build/gnu/gcc-last/build-x86_64-linux/gcc/gfortran
-B/export/build/gnu/gcc-last/build-x86_64-linux/gcc/
-L/export/build/gnu/gcc-last/build-x86_64-linux/gcc/../x86_64-unknown-linux-gnu/libgfortran/.libs
-static -g -o foo foo.o
./foo
Fortran runtime error: Attempt to allocate a negative amount of memory.
make: *** [all] Error 2
[hjl@gnu-26 31974]$


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31974


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]