This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66310] Problems with intrinsic repeat for large number of copies
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 May 2015 09:37:14 +0000
- Subject: [Bug fortran/66310] Problems with intrinsic repeat for large number of copies
- Auto-submitted: auto-generated
- References: <bug-66310-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-05-28
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I replace the line
print *, repeat(z, huge(1_4))
with
print *, repeat(z, 262500000)
in the second code of comment 0, the code compiles, not with
print *, repeat(z, 275000000)
f951(2361,0x7fff72381300) malloc: *** mach_vm_map(size=18446744073447682048)
failed (error code=3)
Note that 275000000 is well below the 16Gb of memory I have on my machine and I
don't understand why gfortran needs to allocate 18446744073447682048 bytes.