Re: [PATCH] c++: constexpr array reference and value-initialization [PR101371]

2021-07-14 Thread Jason Merrill via Gcc-patches
On 7/14/21 9:56 AM, Marek Polacek wrote: On Wed, Jul 14, 2021 at 12:15:48AM -0400, Jason Merrill wrote: On 7/13/21 8:15 PM, Marek Polacek wrote: This PR gave me a hard time: I saw multiple issues starting with different revisions. But ultimately the root cause seems to be the following, and th

Re: [PATCH] c++: constexpr array reference and value-initialization [PR101371]

2021-07-14 Thread Marek Polacek via Gcc-patches
On Wed, Jul 14, 2021 at 12:15:48AM -0400, Jason Merrill wrote: > On 7/13/21 8:15 PM, Marek Polacek wrote: > > This PR gave me a hard time: I saw multiple issues starting with > > different revisions. But ultimately the root cause seems to be > > the following, and the attached patch fixes all issu

Re: [PATCH] c++: constexpr array reference and value-initialization [PR101371]

2021-07-13 Thread Jason Merrill via Gcc-patches
On 7/13/21 8:15 PM, Marek Polacek wrote: This PR gave me a hard time: I saw multiple issues starting with different revisions. But ultimately the root cause seems to be the following, and the attached patch fixes all issues I've found here. In cxx_eval_array_reference we create a new constexpr