Re: [PATCH] c++: RESULT_DECL replacement in constexpr call result [PR105440]

2025-01-15 Thread Jason Merrill
On 1/15/25 10:13 AM, Patrick Palka wrote: On Mon, 1 May 2023, Jason Merrill wrote: On 4/28/23 15:40, Patrick Palka wrote: On Fri, 28 Apr 2023, Patrick Palka wrote: On Fri, 28 Apr 2023, Patrick Palka wrote: After mechanically replacing RESULT_DECL within a constexpr call result (for sake of R

Re: [PATCH] c++: RESULT_DECL replacement in constexpr call result [PR105440]

2025-01-15 Thread Patrick Palka
On Mon, 1 May 2023, Jason Merrill wrote: > On 4/28/23 15:40, Patrick Palka wrote: > > On Fri, 28 Apr 2023, Patrick Palka wrote: > > > > > On Fri, 28 Apr 2023, Patrick Palka wrote: > > > > > > > After mechanically replacing RESULT_DECL within a constexpr call result > > > > (for sake of RVO), we

Re: [PATCH] c++: RESULT_DECL replacement in constexpr call result [PR105440]

2023-05-01 Thread Jason Merrill via Gcc-patches
On 4/28/23 15:40, Patrick Palka wrote: On Fri, 28 Apr 2023, Patrick Palka wrote: On Fri, 28 Apr 2023, Patrick Palka wrote: After mechanically replacing RESULT_DECL within a constexpr call result (for sake of RVO), we can in some cases simplify the call result further. In the below testcase t

Re: [PATCH] c++: RESULT_DECL replacement in constexpr call result [PR105440]

2023-04-28 Thread Patrick Palka via Gcc-patches
On Fri, 28 Apr 2023, Patrick Palka wrote: > On Fri, 28 Apr 2023, Patrick Palka wrote: > > > After mechanically replacing RESULT_DECL within a constexpr call result > > (for sake of RVO), we can in some cases simplify the call result > > further. > > > > In the below testcase the result of get()

Re: [PATCH] c++: RESULT_DECL replacement in constexpr call result [PR105440]

2023-04-28 Thread Patrick Palka via Gcc-patches
On Fri, 28 Apr 2023, Patrick Palka wrote: > After mechanically replacing RESULT_DECL within a constexpr call result > (for sake of RVO), we can in some cases simplify the call result > further. > > In the below testcase the result of get() during evaluation of a's > initializer is the self-refere

[PATCH] c++: RESULT_DECL replacement in constexpr call result [PR105440]

2023-04-28 Thread Patrick Palka via Gcc-patches
After mechanically replacing RESULT_DECL within a constexpr call result (for sake of RVO), we can in some cases simplify the call result further. In the below testcase the result of get() during evaluation of a's initializer is the self-referential CONSTRUCTOR: {._M_p=(char *) &._M_local_buf}