https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
--- Comment #35 from Filipe Brandenburger <filbranden at google dot com> --- (In reply to Manuel López-Ibáñez from comments) Don't worry, I got what you mean... Though I don't think coming up with code to fix it is the issue here, in comment #10 a patch was provided (which admittedly I haven't tested personally) to turn a void cast into a temporary assignment (which I believe would have been optimized out later in the pipeline) so I wonder why that hasn't really gone forward... Cheers, Filipe