From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9EE5385800D; Sat, 16 Mar 2024 04:02:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9EE5385800D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710561774; bh=lpLDuRL72Jbtox/f0ijhAGBsn9OV/j7f/41BEXwhwoE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gxhcI56rD7iqC/19cWekY/XK3fesF7U2V6Vi0RWnpWgRCReRJhfPj/LD9yqySBLUl cBCjcpFqfN5YS9t3ntfMHTuIQWnZWlIJ4PnXTQ3cMhKU95JXoHtwlUju5NWP/zXi4Q NnK7LMu0wCP1zrFiNBbLP/RNmhRxa7BCNK9ERjmI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop Date: Sat, 16 Mar 2024 04:02:54 +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: 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=3D114359 --- Comment #1 from Andrew Pinski --- > Due to an integer overflow Hmm, I don't think this is an integer overflow but rather due to wrapping. = Yes there is a difference as overflow is undefined behavior while wrapping is defined.=