https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2014-02-19 00:00:00 |2017-7-27 CC| |egallager at gcc dot gnu.org --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- It's not just -O1 that misses the warning. I tested all optimization levels, and gcc only warned with -O0. The warning disappeared with -O1, -O2, -O3, -Og, -Os, and -Ofast.