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

2021-04-01 Thread Jason Merrill via Gcc-patches
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_comparison) { /* If the function was declared constexpr, check that the de

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

2021-04-01 Thread Marek Polacek via Gcc-patches
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_comparison) { /* If the function was declared constexpr, check that the definition qualifies. Otherwise we ca