This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR34537 - ICE or wrong code for TRANSFER of constant string to character


Tobias,

>  allocate(ptr(8))
>  ptr = transfer('Sample#0'//achar(0),ptr) ! Causes ICE
>
> is bad, because you transfer 9 bytes to a (pointer to a) 8-byte array.

aacchhh, bother!  A last minute addition of #n to correspond to the PR
and I forgot about the size of the array.

Thanks!

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]