https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36823
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2009-02-09 15:35:38 |2019-2-24 CC| |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- GCC 7, 8 and 9 do warn at -O1 but not at -O2. The last version on Godbolt to warn at -O2 was 4.1 (I don't have access to the bisection machine so I can't tell where this problem was introduced).