https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49409
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- -Wtautological-compare has been added to GCC 6. -Wlogical-op is older, but the part of it that warns about "i && i" is new and has only been added to GCC 6. I agree about closing the bug now, BTW.