From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 287BE3858C53; Sat, 18 May 2024 06:29:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 287BE3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716013742; bh=AZdqHihaLAvFzW8sYSnaBIPFu3mspjd+KhIkzhfRJyU=; h=From:To:Subject:Date:From; b=PgirhIFB4a80AHr4c+fq/iCX+xb1arxktnVWpZ/JVAyXzuKROurGbEDcJYB+iHkkN LLncnlOvozppEYJs32xhjsaqiBUPO0u9h96bDTuCJpzSIjq3iWoC/euUxmxUVegTXp x80MUlCg4/5DUQON958rBA2XgzB08rb3IsVa6arM= From: "hewillk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115145] New: Help lambda in rewritten std::variant comparisons does not specify return type Date: Sat, 18 May 2024 06:29:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hewillk at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D115145 Bug ID: 115145 Summary: Help lambda in rewritten std::variant comparisons does not specify return type Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- ..which can be an regression: #include struct Bool { operator bool(); Bool(const Bool&) =3D delete; }; struct Elem { Bool& operator=3D=3D(const Elem&) const; }; int main() { std::variant v; return v =3D=3D v; } https://godbolt.org/z/14q14TrYW=