https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97540
David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- Probably related: struct { struct { int b } } c; a(e) { asm("" : : "rm"(e)); } d() { a(~c.b); } Flag -O1 required. Goes wrong sometime between 20201021 and 20201022.