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] PR42888: [4.5 Regression] ICE in fold_convert_loc, at fold-const.c:2670


>>> Actually, why do you need a memcopy and cannot do a normal assignment?
>>>
>> for the test case I attached, a normal assignment would be sufficient.
>> The memcpy is needed for the general case that the dynamic type (which
>> is being allocated) is different
>>
> Thanks for the clarification. The patch is OK. (Maybe one should add a
> note regarding using memcopy due to the dynamic type - if others stumble
> over it; but possibly it is not really needed.)

Thanks. Committed as r156418 (with an additional comment on the memcpy).

Cheers,
Janus


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