PR c++/92774 - ICE with implicitly deleted operator<=>.
authorJason Merrill <jason@redhat.com>
Wed, 11 Dec 2019 16:51:05 +0000 (11:51 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 Dec 2019 16:51:05 +0000 (11:51 -0500)
commit60e457d9cad52491bbff434bf611b21f2da07ecc
tree2c438668a84a9f52f6e1c808d948c2b62bdf7297
parentd6e8c01cff1bee743a9d00e9a43303ec29fde233
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.

From-SVN: r279235
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp2a/spaceship-synth-neg2.C [new file with mode: 0644]