https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65168
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|x86_64-linux-gnu | Status|UNCONFIRMED |NEW Last reconfirmed| |2015-03-22 CC| |jason at redhat dot com, | |manu at gcc dot gnu.org, | |paolo.carlini at oracle dot com Ever confirmed|0 |1 --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- The return value is optimized to 0 even before reaching GIMPLE, so this can definitely be warned by the C++ FE.