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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
                 CC|                            |mpolacek at gcc dot gnu.org
   Last reconfirmed|                            |2021-07-23
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot 
gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Taking: will be fixed with my patch
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575580.html

$ xg++ -c nullptr46.C -Wlogical-op
nullptr46.C: In function ‘bool bar()’:
nullptr46.C:10:17: error: ordered comparison of pointer with integer zero
(‘std::nullptr_t’ and ‘std::nullptr_t’)
   10 |   return foo () > nullptr || foo () < nullptr;
      |          ~~~~~~~^~~~~~~~~
nullptr46.C:10:37: error: ordered comparison of pointer with integer zero
(‘std::nullptr_t’ and ‘std::nullptr_t’)
   10 |   return foo () > nullptr || foo () < nullptr;
      |                              ~~~~~~~^~~~~~~~~

Reply via email to