Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-26 Thread Giuseppe D'Angelo
On 26/02/2025 16:22, Jonathan Wakely wrote: Clang 17/18 rejects 'constexpr' on non-template functions that use (non-constexpr) placement new but accepts it on templates (silently dropping constexpr at instantiation time):https://godbolt.org/z/Tqnvc1f1W So it seems Clang 17/18 behavior is consiste

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-26 Thread Jonathan Wakely
On Wed, 26 Feb 2025 at 15:06, Patrick Palka wrote: > > On Tue, 25 Feb 2025, Jonathan Wakely wrote: > > > On Thu, 20 Feb 2025 at 16:23, Patrick Palka wrote: > > > > > > On Sun, 16 Feb 2025, Giuseppe D'Angelo wrote: > > > > > > > Hello, > > > > > > > > the attached patch implements the C++26 papers

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-26 Thread Patrick Palka
On Tue, 25 Feb 2025, Jonathan Wakely wrote: > On Thu, 20 Feb 2025 at 16:23, Patrick Palka wrote: > > > > On Sun, 16 Feb 2025, Giuseppe D'Angelo wrote: > > > > > Hello, > > > > > > the attached patch implements the C++26 papers that add `constexpr` to the > > > specialized memory algorithms (the u

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-25 Thread Jonathan Wakely
On Tue, 25 Feb 2025 at 22:46, Jonathan Wakely wrote: > > On Thu, 20 Feb 2025 at 16:23, Patrick Palka wrote: > > > > On Sun, 16 Feb 2025, Giuseppe D'Angelo wrote: > > > > > Hello, > > > > > > the attached patch implements the C++26 papers that add `constexpr` to the > > > specialized memory algori

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-25 Thread Jonathan Wakely
On Thu, 20 Feb 2025 at 16:23, Patrick Palka wrote: > > On Sun, 16 Feb 2025, Giuseppe D'Angelo wrote: > > > Hello, > > > > the attached patch implements the C++26 papers that add `constexpr` to the > > specialized memory algorithms (the uninitialized_* family). Tested on x86-64 > > Linux. > > > > T

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-25 Thread Giuseppe D'Angelo
Hello, Thanks for the review! On 20/02/2025 17:22, Patrick Palka wrote: On Sun, 16 Feb 2025, Giuseppe D'Angelo wrote: Hello, the attached patch implements the C++26 papers that add `constexpr` to the specialized memory algorithms (the uninitialized_* family). Tested on x86-64 Linux. Thank y

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-20 Thread Patrick Palka
On Sun, 16 Feb 2025, Giuseppe D'Angelo wrote: > Hello, > > the attached patch implements the C++26 papers that add `constexpr` to the > specialized memory algorithms (the uninitialized_* family). Tested on x86-64 > Linux. > > Thank you, > -- > Giuseppe D'Angelo > > Subject: [PATCH] libstdc++: