From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C27C385802D; Fri, 2 Feb 2024 19:54:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C27C385802D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706903698; bh=KRaBxqMNrEI/eLFLMvGKa7l8wSEf6xQstN7RERL9Jpw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UVTlux0kdZLLdtcyhKhx91rNevzDObDhCOFk2kRxhxAvV8ZYMzCF/PSOAsgEC/zqd OGruCFShIltJkfZc/Zz5za6AMEqoCIhtybITF93SkvkkoweCNa4STjZeSuVfx0FHup GkzOyqCPip9R7M8yeYdbfDQKsKwLDRpxnCx7zmT4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110084] [12/13/14 Regression] defaulted constexpr operator== causes crash Date: Fri, 02 Feb 2024 19:54:56 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-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: P2 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=3D110084 --- Comment #5 from GCC Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:28f95c81382243fc4e6f1b22741d258f5fd7541f commit r12-10129-g28f95c81382243fc4e6f1b22741d258f5fd7541f Author: Jason Merrill Date: Fri Feb 2 12:04:11 2024 -0500 c++: op=3D=3D defaulted outside class [PR110084] defaulted_late_check is for checks that need to happen after the class = is complete; we shouldn't call it sooner. PR c++/110084 gcc/cp/ChangeLog: * pt.cc (tsubst_function_decl): Only check a function defaulted outside the class if the class is complete. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-synth-neg3.C: Check error message. * g++.dg/cpp2a/spaceship-eq16.C: New test. (cherry picked from commit e17a122d417fc0d606bcb3a3705b93ee81745cab)=