https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97976
Peter Bisroev <peter at int19h dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Peter Bisroev <peter at int19h dot net> --- Hi Andrew, You are 100% correct. I realized that as soon as I hit submit button. I was trying to create a simple test case of the problem that I saw and a bit oversimplified it. GCC actually optimized this really well. I apologize for a false report. Regards, --peter