Re: [pushed] c++: defaulted op== for incomplete class [PR107291]

2024-02-05 Thread Jason Merrill
On 2/5/24 21:55, Marek Polacek wrote: On Mon, Feb 05, 2024 at 09:29:08PM -0500, Jason Merrill wrote: Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- After complaining about lack of friendship, we should not try to go on and define the defaulted comparison operator anyway. PR c

Re: [pushed] c++: defaulted op== for incomplete class [PR107291]

2024-02-05 Thread Marek Polacek
On Mon, Feb 05, 2024 at 09:29:08PM -0500, Jason Merrill wrote: > Tested x86_64-pc-linux-gnu, applying to trunk. > > -- 8< -- > > After complaining about lack of friendship, we should not try to go on and > define the defaulted comparison operator anyway. > > PR c++/107291 > > gcc/cp/Chang

[pushed] c++: defaulted op== for incomplete class [PR107291]

2024-02-05 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- After complaining about lack of friendship, we should not try to go on and define the defaulted comparison operator anyway. PR c++/107291 gcc/cp/ChangeLog: * method.cc (early_check_defaulted_comparison): Fail if not friend