From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE2E5385734F; Fri, 9 Sep 2022 19:04:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE2E5385734F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662750299; bh=oqt/IeFVP8JssapQMqZFrMR8slQSref21qacwqqW9Yg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ITPm99qpfCCvGyM35oRtCBs3Ka3DExKAfoJnsgGFbSm+adN0OemIUt+gvZxC6EpBl xr482AdWAZdlNJhq/+ap4lsh6bpJ5jNQLFVLEkM+26sVJKKZWtn1eGGWn4z2MCZlMs X7e74Iioo2yEywW5tLiq6E/VJfkm12QGkaKdTGOE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106766] zip_view::_Iterator/_Sentinel's operator- use make_unsigned_t Date: Fri, 09 Sep 2022 19:04:59 +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: cvs-commit at gcc dot gnu.org 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=3D106766 --- Comment #1 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:718a6d475b3d17759618c68331c85f55c58ec9a3 commit r13-2567-g718a6d475b3d17759618c68331c85f55c58ec9a3 Author: Patrick Palka Date: Fri Sep 9 14:56:32 2022 -0400 libstdc++: Fix zip_view's operator- for integer-class difference type [PR106766] The difference type of an underlying iterator could be an integer-class type, which make_unsigned_t doesn't handle, so we need to use the more general __make_unsigned_like_t / __to_unsigned_like here instead. PR libstdc++/106766 libstdc++-v3/ChangeLog: * include/std/ranges (zip_view::_Iterator::operator-): Use __to_unsigned_like instead of make_unsigned_t. (zip_view::_Sentinel::operator-): Likewise. * testsuite/std/ranges/zip/1.cc (test04): New test.=