From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 396053858429; Fri, 14 Oct 2022 02:29:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 396053858429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665714546; bh=58coE3FpC72DstryOEK3BQ00k0UQUqs4/rTkp1YecJ8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RZLepNXbtVY/3ctuUIkT5fBBVnIt5BOwHXrWulx3qoOiPRWaJaVr//3Kl1/abqgja NShs/Acvahhv1is4X9AQau8FUS1rGiZGvqj/WTz178icy4HfreNM4999KTVdQrkJOQ u7d1FJrKcU64lDrR+Y0AYUj3/A6bnu434bJ85E5Y= From: "de34 at live dot cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107092] std::for_each_n and its friends incorrectly accept size parameters that are not convertible to an integer type Date: Fri, 14 Oct 2022 02:29:05 +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: 12.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: de34 at live dot cn 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=3D107092 --- Comment #3 from Jiang An --- https://cplusplus.github.io/LWG/issue3793 has been submitted. Such requirement was originally added by N0700 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/1995/N0700.pdf), but intented target types were unknown.=