https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108518
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In similar fashion memcpy/memset with a size argument of 0 passed, they have to be a non-null pointer.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 24 Jan 2023 13:19:09 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108518
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In similar fashion memcpy/memset with a size argument of 0 passed, they have to be a non-null pointer.