From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61D923858C41; Wed, 10 Jan 2024 19:08:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61D923858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704913693; bh=/Qun1LBS2FXsTY2c0iBdU4OgO6Nn31k3nUgxvdwrg1U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZYNV2GuVPK4+RQlPkcCAiL5Eml1zNqaR1AdWRAkbJWpFnQRLZl60dgFBgJRI2VxfN NmiOCeAr1xbEfdiF/YGPJ0jaVghwglrNQNsAW41P0s3/EFbUZfHt01xPiTUmUOh4xL FFqZxiOmo4/FyS8CiR6+5KCTUquPzr637+2nl4w4= From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108760] ranges::iota is not included in Date: Wed, 10 Jan 2024 19:08: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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: NEW 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=3D108760 --- Comment #3 from Daniel Kr=C3=BCgler --- (In reply to Michael Levine from comment #2) > (In reply to Daniel Kr=C3=BCgler from comment #1) > > (In reply to =E5=BA=B7=E6=A1=93=E7=91=8B from comment #0) > > > It seems wrong that libstdc++ needs to include for ranges= ::iota. > >=20 > > I agree, this looks like a defect, both std::iota and std::ranges:iota = are > > specified to be part of header >=20 > Should it not require including even though it seems to be a = use > of a constrained algorithm through C++20 that is in the namespace > std::ranges? https://en.cppreference.com/w/cpp/algorithm Following https://cplusplus.github.io/LWG/lwg-defects.html#1178 we have according to [res.on.headers] p1 "A C++ header shall provide the declarations and definitions that appear in= its synopsis." and I'm interpreting this that an implementation needs to make it work with= out requiring the user to include . But we have https://cplusplus.github.io/LWG/issue3679 which raises a similar question for a different issue. If the libstdc++ maintainers think that the current wording does require a conforming program to include , I think that an LWG issue would be required.=