From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D4E93858D34; Fri, 3 Jul 2020 11:03:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D4E93858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593774205; bh=B0IsBhv2qsZWZQPWAGdeKdrbcZCadUgnuicTq8RXYMM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lpsQZdR3UYB/MRZqlYWjkLYKe+WCjlV9JIZNlZ7Gd2YYT/u6WAGB8ANglWYIAsmH5 zD78JiIovQnFaxLTwVWZR+kihT2D350FaOgfkvXR+78iGSACHazt4f0BJwwT8iZ4EE sLo3nuHr3vLVHhG8INdETQWbZyjN6kCsQ5UI76qs= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/96042] Reference type of std::ranges::iota is __int128 with -std=c++2a?! Date: Fri, 03 Jul 2020 11:03:25 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2020 11:03:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96042 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Jonathan Wakely --- Not a bug. When __STRICT_ANSI__ is defined is_integral_v<__int128> is false and numeric_limits<__int128> is not specialized. But that doesn't matter, because the difference type of iota_view does not = have to be a standard integer type. __int128 is a valid type for the difference = type of iota_view. There is no requirement that is_integral_v or numeric_limits::is_specialized is true for the difference type of iota_view.=