[Bug tree-optimization/94130] [8/9/10 Regression] Unintended result with optimization option when assigning two structures, memset and 0
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 11 07:58:16 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94130
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Doing
memset(&s_myvalue, 0, sizeof(s_myvalue));
s_myreq.m_data = &s_myvalue;
also works around the issue. Odd.
More information about the Gcc-bugs
mailing list