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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Before `DEBUG_LOG_INFO("2 Data %p\n", dest.Data);`
is there any calls before hand? Like say to memcpy? or anything that might have
the nonnull attribute on it and uses dest.Data?

Note memcpy before C23 was undefined (even if the length was 0) to pass a null
pointer to it. 

Does -fno-delete-null-pointer-checks if the issue you are running into? If so
there is most likely a what I described, `-fsanitize=undefined` should catch
that at runtime.

Reply via email to