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 tree-optimization/31974] [4.3 regression]: Many libgomp failures



------- Comment #6 from fxcoudert at gcc dot gnu dot org  2007-05-19 18:16 -------
Indeed...

$ cat u.f90               
  subroutine foo (n)
    integer :: n
    character (len = n) :: v(n)
    v = ''
  end subroutine foo

  call foo(7)
  end
$ gfortran u.f90 -O && ./a.out
$ gfortran u.f90 -O -ftree-vrp && ./a.out
Fortran runtime error: Attempt to allocate a negative amount of memory.


The tree-original output is a bit convoluted, but I think it's doing the right
thing. I'm attaching it here.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|libgomp                     |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-05-19 18:16:20
               date|                            |


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]