Re: [PATCH v2] c++: ICE initing lifetime-extended constexpr var [PR107079]

2023-02-09 Thread Jason Merrill via Gcc-patches
On 2/8/23 18:15, Marek Polacek wrote: On Wed, Feb 08, 2023 at 04:00:25PM -0800, Jason Merrill wrote: On 2/8/23 13:01, Marek Polacek wrote: (This may not be a complete fix but I got stuck so I'm posting what I have, which at least fixes the ICE.) We ICE on the simple: struct X { const X*

[PATCH v2] c++: ICE initing lifetime-extended constexpr var [PR107079]

2023-02-08 Thread Marek Polacek via Gcc-patches
On Wed, Feb 08, 2023 at 04:00:25PM -0800, Jason Merrill wrote: > On 2/8/23 13:01, Marek Polacek wrote: > > (This may not be a complete fix but I got stuck so I'm posting what > > I have, which at least fixes the ICE.) > > > > We ICE on the simple: > > > >struct X { const X* x = this; }; > >