Re: [PATCH] c++: defaulted comparisons and vptr fields [PR95567]

2021-09-30 Thread Jason Merrill via Gcc-patches
On 9/30/21 10:03, Patrick Palka wrote: We need to skip over vptr fields when synthesizing a defaulted comparison operator. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/11? OK. PR c++/95567 gcc/cp/ChangeLog: * method.c (build_comparison_op):

[PATCH] c++: defaulted comparisons and vptr fields [PR95567]

2021-09-30 Thread Patrick Palka via Gcc-patches
We need to skip over vptr fields when synthesizing a defaulted comparison operator. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/11? PR c++/95567 gcc/cp/ChangeLog: * method.c (build_comparison_op): Skip DECL_VIRTUAL_P fields. gcc/testsuite/Chan