This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71457] valid pointer plus conversion to bool rejected in constexpr context


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Looks like this was fixed in r244333 (gcc 7.0.0):

r244333 | jakub | 2017-01-11 15:10:36 -0500 (Wed, 11 Jan 2017) | 8 lines

        PR c++/71537
        * fold-const.c (maybe_nonzero_address): Return 1 for function
        local objects.
        (tree_single_nonzero_warnv_p): Don't handle function local objects
        here.

*** This bug has been marked as a duplicate of bug 71537 ***

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]