[Bug c++/81928] if(!this) optimization leads to possible errors without warnings

matthieu.brucher at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 23 20:47:00 GMT 2017


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

Matthieu Brucher <matthieu.brucher at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #12 from Matthieu Brucher <matthieu.brucher at gmail dot com> ---
Reopening, either this == nullptr is always false and then debug mode should be
changed accordingly, or add a warning. Some consistency is required here.


More information about the Gcc-bugs mailing list