This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50924] Attempt to allocate negative amount of memory. Possible integer overflow
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Oct 2011 18:55:09 +0000
- Subject: [Bug fortran/50924] Attempt to allocate negative amount of memory. Possible integer overflow
- Auto-submitted: auto-generated
- References: <bug-50924-4@http.gcc.gnu.org/bugzilla/>
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.