This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71457] valid pointer plus conversion to bool rejected in constexpr context
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Feb 2017 23:41:34 +0000
- Subject: [Bug c++/71457] valid pointer plus conversion to bool rejected in constexpr context
- Auto-submitted: auto-generated
- References: <bug-71457-4@http.gcc.gnu.org/bugzilla/>
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 ***