Re: [PATCH v2] c++: GC collects live data when synthesizing operator== [PR99831]

2021-04-01 Thread Jason Merrill via Gcc-patches
On 4/1/21 5:12 PM, Marek Polacek wrote: On Thu, Apr 01, 2021 at 03:09:44PM -0400, Jason Merrill wrote: On 4/1/21 2:15 PM, Marek Polacek wrote: Here we crash in reshape_init because we're accessing ggc_freed & poisoned data: since r277865 in defaulted_late_check we call synthesize_method here:

Re: [PATCH v2] c++: GC collects live data when synthesizing operator== [PR99831]

2021-04-01 Thread Marek Polacek via Gcc-patches
On Thu, Apr 01, 2021 at 03:09:44PM -0400, Jason Merrill wrote: > On 4/1/21 2:15 PM, Marek Polacek wrote: > > Here we crash in reshape_init because we're accessing ggc_freed > > & poisoned data: since r277865 in defaulted_late_check we call > > synthesize_method here: > > > >if (kind == sfk_com