From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 959E83858C52; Fri, 5 May 2023 18:41:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 959E83858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683312119; bh=vuZmfcjczXiTP6oxZuftUlO8txZc49MyCWennb4U2SQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W3gz6orpyjbdLDQCBRxufKrJcAoXoKLfqfUqo264wAZFiaeVuA7pEQWvVo0CNs++h NuOhSUHdkmLK4c386VJ17anDdfa5pr0pw77yOWoRklrc5ul8Ben/pRR6o9ap8ujVX5 xNDY3Ns0k4ABo6/suRfLH1+hv1vYHlPadrMdvSik= 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 18:41:59 +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 #7 from Andrew Pinski --- I think the error message is correct. In the original code we have: ``` ... template concept incrementable =3D regular<_Iter> && requires(_Iter __i) { { __i= ++ } -> same_as<_Iter>; }; ... namespace boost { namespace stl_interfaces { inline namespace v2 { template< typename D, typename IteratorConcept, typename DifferenceType> struct iterator_interface { friend constexpr bool operator>=3D(D lhs, D rhs) requires std::equality_comparable { } }; ... template struct iterator : boost::stl_interfaces::iterator_interface, std::forward_iterator_tag, T> { bool operator=3D=3D(iterator) const; }; ``` iterator is not complete until after the instantiation is finished but we have a std::equality_comparable which does the confusion=