https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82437

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-10-05
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|false-positive              |[8 Regression]
                   |-Wtautological-compare      |false-positive
                   |warning with -std=gnu89     |-Wtautological-compare
                   |                            |warning with -std=gnu89
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that warn_tautological_cmp is called on the original arguments,
not yet converted to the common type.  So one of them is negative, the other
positive.

Reply via email to