Re: [C++ PATCH] Implement LWG2296 helper intrinsic

2017-01-03 Thread Jonathan Wakely
On 01/01/17 15:53 +0100, Jakub Jelinek wrote: 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 use

Re: [C++ PATCH] Implement LWG2296 helper intrinsic

2017-01-01 Thread Jakub Jelinek
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!

Re: [C++ PATCH] Implement LWG2296 helper intrinsic

2017-01-01 Thread Gerald Pfeifer
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 ? Gerald

Re: [C++ PATCH] Implement LWG2296 helper intrinsic

2016-10-07 Thread Jason Merrill
OK. On Fri, Oct 7, 2016 at 3:23 PM, Jakub Jelinek wrote: > Hi! > > 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. > > Bootstrapped/regtested on x86_64-linux and i686-linu

[C++ PATCH] Implement LWG2296 helper intrinsic

2016-10-07 Thread Jakub Jelinek
Hi! 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. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-10-07 Jakub Jelinek Implement LWG229