[Bug libstdc++/96416] address_of() is broken by static_assert in pointer_traits

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 11 20:40:22 GMT 2020


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thanks, Glen. So it seems I was right the first time, and using std::to_address
does require a type that can be used with std::pointer_traits.

Not a bug then. Sorry, Zach!


More information about the Gcc-bugs mailing list