[Bug middle-end/105860] Miscompilation causing clobbered union contents
tpg+gcc at mutabah dot net
Wed Jun 15 12:05:41 GMT 2022
--- Comment #2 from John Hodge <tpg+gcc at mutabah dot net> ---
Created attachment 53144
Reproduction, partially minimised and including assertion
Attached is an updated reproduction, that includes asserts.
This fails the assert when compiled with gcc 10.3.0-1ubuntu1~20.04 when -O1 is
passed, and passes when no optimisation is enabled.
(Platform is x86_64, in case that wasn't already obvious from the disassembly)
More information about the Gcc-bugs