Re: [pushed] c++: implicit operator== with previous decl [PR94583]

2020-04-28 Thread Jason Merrill via Gcc-patches
On 4/25/20 6:54 PM, Marek Polacek wrote: On Sat, Apr 25, 2020 at 12:17:18AM -0400, Jason Merrill via Gcc-patches wrote: P2085 clarified that a defaulted comparison operator must be the first declaration of the function. Rejecting that avoids the ICE trying to compare the

Re: [pushed] c++: implicit operator== with previous decl [PR94583]

2020-04-25 Thread Marek Polacek via Gcc-patches
On Sat, Apr 25, 2020 at 12:17:18AM -0400, Jason Merrill via Gcc-patches wrote: > P2085 clarified that a defaulted comparison operator must be the first > declaration of the function. Rejecting that avoids the ICE trying to > compare the noexcept-specifications. > > Tested x86_64-pc-linux-gnu,

[pushed] c++: implicit operator== with previous decl [PR94583]

2020-04-24 Thread Jason Merrill via Gcc-patches
P2085 clarified that a defaulted comparison operator must be the first declaration of the function. Rejecting that avoids the ICE trying to compare the noexcept-specifications. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog 2020-04-24 Jason Merrill PR c++/94583