[Bug fortran/50924] Attempt to allocate negative amount of memory. Possible integer overflow

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Oct 30 18:55:00 GMT 2011


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org 2011-10-30 18:55:09 UTC ---
(In reply to comment #1)
> NB: my system is 32-bit

What happens if you use 'INTEGER(8) N'?

You may simply be hitting an OS problem.  Your code
fails on i686-*-freebsd and runs fine on x86_64-*-freebsd.

The moral seems to be if you want to grab large chunks
of memory, get hardware that will it.



More information about the Gcc-bugs mailing list