[Bug fortran/66310] Problems with intrinsic repeat for large number of copies

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sat Mar 17 15:50:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310

--- Comment #22 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
For the original test

   program p
      character :: z = 'z'
      print *, repeat(z, huge(1_4))
   end

I get

% gfc pr66310.f90 -m32
% ./a.out > zzz
a.out(22882,0xa9b3c1c0) malloc: *** mach_vm_map(size=2147483648) failed (error
code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.


More information about the Gcc-bugs mailing list