From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 666303858D33; Fri, 5 May 2023 17:45:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 666303858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683308749; bh=vCkpRMEu/8t80pTKSZWR2l3tSY9pFqH6RncK4tx9ZoI=; h=From:To:Subject:Date:From; b=UR73PMK064HlKEXeGZ33IJzsYTz/EENEM2pXulB1O6q1o4nwczoCQhhtDDA4y9q1Z SPNS+zFQIbr2uwWvChhr8KLJJ24MFEf1AfQjeU4WZcxjeAdY4GD34x3m4LyxkVw+2D aojeAgCfLC8Wz5z53JjnE+HdFm+rEaG0iRHWbcPY= From: "ldalessandro at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109751] New: boost interface_interface fails concept check starting in gcc-13 Date: Fri, 05 May 2023 17:45:48 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ldalessandro 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=3D109751 Bug ID: 109751 Summary: boost interface_interface fails concept check starting in gcc-13 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: ldalessandro at gmail dot com Target Milestone: --- The following example is reduced from https://github.com/boostorg/stl_interfaces/blob/boost-1.82.0/example/node_i= terator.cpp. It compiles fine in gcc-12 but fails a concept check in gcc-13. #include template struct iterator : boost::stl_interfaces::iterator_interface,= =20 std::forward_iterator_tag, T> { using base_type =3D boost::stl_interfaces::iterator_interface, std::forward_iterator_tag, T>; using base_type::operator++; T& operator*() const; iterator& operator++(); bool operator=3D=3D(iterator) const; }; static_assert(std::incrementable>); Live: https://godbolt.org/z/6qsx1narj The error tells us that this requires clause changes from false to true. friend constexpr bool operator<(D lhs, D rhs) requires std::equality_comparable { return (lhs - rhs) < typename D::difference_type(0); } https://github.com/boostorg/stl_interfaces/blob/boost-1.82.0/include/boost/= stl_interfaces/iterator_interface.hpp#L779 I don't think that requires clause makes any sense, but I also don't know w= hy the behavior would have changed from gcc-12 to gcc-13.=