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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I add a line

print *, size(a, kind=16), sizeof(a(1))

the output is

 18446744073709551615                    0

Note that the size of A is zero.

For very large arrays the darwin loader emits either

ld: LC_SEGMENT filesize too large file 'object.o' for architecture x86_64

for

program main
  character(len=2_8**33), parameter :: a = ""
  character(len=2_8**33) :: b
  print '(A)',a
  b = ""
  print '(A)',b
end program main

or (pr69061)

ld: 32-bit RIP relative reference out of range (5624320831 max is +/-2GB): from
_MAIN__ (0x100001692) to _pxz.3873 (0x24F3C8080) in '_MAIN__' from
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccYDTFMi.o for architecture
x86_64

What should be do with this PR?

Reply via email to