https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92774
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Dec 11 16:51:05 2019 New Revision: 279235 URL: https://gcc.gnu.org/viewcvs?rev=279235&root=gcc&view=rev Log: PR c++/92774 - ICE with implicitly deleted operator<=>. Missing error-recovery code. While I was poking at this I also figured we don't need to iterate over the members of a union. * method.c (comp_info::~comp_info): Factor out of... (build_comparison_op): Here. Handle error return from build_new_op. Added: trunk/gcc/testsuite/g++.dg/cpp2a/spaceship-synth-neg2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/method.c