This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Implement LWG2296 helper intrinsic
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: Jason Merrill <jason at redhat dot com>, Jonathan Wakely <jwakely at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Jan 2017 15:53:23 +0100
- Subject: Re: [C++ PATCH] Implement LWG2296 helper intrinsic
- Authentication-results: sourceware.org; auth=none
- References: <20161007192330.GJ7282@tucnak.redhat.com> <alpine.LSU.2.20.1612311931260.2994@anthias.pfeifer.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Jan 01, 2017 at 10:27:24AM -0400, Gerald Pfeifer wrote:
> On Fri, 7 Oct 2016, Jakub Jelinek wrote:
> > The following patch adds __builtin_addressof with the semantics it has in
> > clang, i.e. it is a constexpr & operator alternative that never uses the
> > overloaded & operator.
>
> Nice!
>
> Are you planning to document this in gcc-7/changes.html ?
We shouldn't document the builtin, but that std::addressof is usable in
constexpr contexts. I'll defer documentation thereof to Jon, together with
other libstdc++ changes.
Jakub