From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFEE538582A7; Thu, 8 Feb 2024 10:21:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFEE538582A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707387713; bh=k+LHSp7TM67LN1DOpu2z3zrhPjBbMfIEEqXClYFzhNA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gPBAq4wNIGLYncjqOjrIgZGk9OL4GP7NTomSEfjP+9J2pP3Sb/lRelEbNKSfOs4Cg DNh5vdVJNFhmvi0HQvE6Hg+FUWkATKiAn3aGEEGthy3IUbFVPfX0xIZRHyCNrL5dx1 lNuHON2qr66CwxO052jzoiiClhMD4Gj9oDaPfgZ4= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113811] std::rotate does 64-bit signed division Date: Thu, 08 Feb 2024 10:21:53 +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.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: bug_status cf_reconfirmed_on everconfirmed 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=3D113811 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2024-02-08 Ever confirmed|0 |1 --- Comment #2 from Jonathan Wakely --- They're never negative unless the arguments to the algorithm are incorrect,= in which case maybe trapping is better than trashing the data! I was going to suggest that we could just add an assertion and/or hint that they're never negative, but I guess PR 102580 means that wouldn't help.=