This is the mail archive of the gcc-bugs@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]

[Bug fortran/67422] memcpy incorrectly used to copy (potentially) overlapping assumed-size arrays


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> memcpy is not guaranteed to work if the memory locations for a and b overlap,
> which could be the case here.

In Fortran code, they cannot be the same location and if they are then it is
undefined code.


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