From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72E553857353; Fri, 5 May 2023 20:01:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72E553857353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683316872; bh=yYM3jIOH+uLJ2UxQN+aCuJgLFukB6mOuV5NhHc5Nv24=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hktV3DgXJHVP4+k9BDfdEI8wcARcEx939NfZ6b/osUXchUnZfxmRQv6gp48ct6j3t Aga6BMNogcPiCKdDdUXW2PGkKlcqpbycuHICOVEPD4BKc4Nm/i04S5of84WyOcQ67A db5pLWILjh//g+R30D4XTVp6l4hOvP8CgisvHu4g= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109751] boost iterator_interface fails concept check starting in gcc-13 Date: Fri, 05 May 2023 20:01:12 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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=3D109751 --- Comment #11 from Andrew Pinski --- Reduced down to: ``` template concept cmpeq =3D requires(_Tp __t, _Tp __u) { { __u !=3D __t } ; }; template struct iterator_interface { friend constexpr bool operator>=3D(D lhs, D rhs) requires cmpeq { retu= rn true; } }; template struct iterator : iterator_interface> { bool operator=3D=3D(iterator) const; iterator &operator++(); iterator &operator++(int); }; static_assert(cmpeq>); ``` Which does make it look invalid for the reasons why I mentioned. clang comp= iles the above just fine and so does GCC 12.x.=