http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52703
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |manu at gcc dot gnu.org Resolution| |DUPLICATE --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-03-24 19:27:54 UTC --- Strangely, I cannot reproduce this with g++ 4.7.0, but I can with gcc. In any case, the warning code does not look into the operands of operators. I did a patch to do this, and it was rejected. Feel free to take it and improve it and get it accepted. *** This bug has been marked as a duplicate of bug 40752 ***