From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EAA073954468; Tue, 13 Apr 2021 20:47:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAA073954468 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/99846] [11 regression] std::variant comparison operator error for recursive type Date: Tue, 13 Apr 2021 20:47:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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, 13 Apr 2021 20:47:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99846 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #10 from Jonathan Wakely --- (In reply to Patrick Palka from comment #7) > After CWG 2369 (i.e. in GCC 11), we check constraints sooner during overl= oad > resolution, so when considering the operator<=3D> candidate we end up loo= ping > during constraint checking, which we consider to be a fatal error. Jason suggested adding a constraint to variant's operator<=3D> so that satisfaction would fail before we try the loopy part. But I don't know how = to do that. I think both G++ and libstdc++ are behaving correctly here, and I can't thi= nk of a non-standard change we could make to support it. So closing as not a b= ug.=