[Bug fortran/67422] memcpy incorrectly used to copy (potentially) overlapping assumed-size arrays
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 1 13:10:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list