From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7C1C1384A01D; Tue, 18 Aug 2020 13:39:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C1C1384A01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597757956; bh=7Ybacjnle3ESJ0joO5MoZ8Rxjs3cmufcSo/78eo4hXY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TLi1AF+0haeFg5xWjxUVKz6dpiIi5HPiOA7r7U5328gVX6Z4uGrnwJWRgiR2nDxin 85b9KzdkO7ZP4vgKOZqzd2YaiiCNL8QsDXwcFXiUyghtCOHSy+opdv13VzXxdhNWs6 sqNzHnbhdOQmg9n9UiziFKCkmkyQQNyA5qNgAc5w= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94162] ICE [neg] bad return type in defaulted <=> Date: Tue, 18 Aug 2020 13:39:16 +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: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status everconfirmed cf_reconfirmed_on 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 13:39:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94162 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2020-08-18 --- Comment #6 from Marek Polacek --- Test from Bug 96627: #include struct Float { float value; constexpr Float(float value) : value (value) {} constexpr bool operator =3D=3D (Float other) const noexcept { return abs(value - other.value) < 0.5; } constexpr bool operator !=3D (Float other) const noexcept { return !(*this =3D=3D other); } constexpr bool operator <=3D> (const Float& other) const noexcept =3D d= efault; };=