From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4898C3858402; Tue, 6 Feb 2024 03:41:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4898C3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707190897; bh=Fhv33D0BsZjmQdobp2DPh0eduNk16C/h+KYJLKG5szU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jJsTdV2lvAaL33X4Xizbti0r6cZXc0CAqouXfQ58J8OwEXlnkO0hnSDKCZtMCjsmN gF5sybf6NTFRDrNeUEB9jN5ffhq4l7v+uGURhAaRl9BIH0vpqgwTo7voIm0RiCzOVx rq5s6c7Xv7ZYJ9XUPY9URRyfCdRt/7nLvi/UZJZY= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107291] [12/13/14 Regression] ICE in build_comparison_op, at cp/method.cc:1461 since r12-4202-g09d886e671f2230a Date: Tue, 06 Feb 2024 03:41:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107291 --- Comment #6 from GCC Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:db8d5b0ad074344559b3201e567c1e47e65d0bdd commit r12-10138-gdb8d5b0ad074344559b3201e567c1e47e65d0bdd Author: Jason Merrill Date: Mon Feb 5 19:56:45 2024 -0500 c++: defaulted op=3D=3D for incomplete class [PR107291] 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 fri= end. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-eq17.C: New test. (cherry picked from commit c5d34912ad576be1ef19be92f7eabde54b9089eb)=