From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B3B23858430; Tue, 23 May 2023 13:40:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B3B23858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684849237; bh=eOWMG61XJfzv1OT7vUyKWjtQKYDv0G/7PSDxv8ZAbbE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EEUcKP4HZDyG7olMhv7PBM2cT0ZNjoCTS3ufkd4a4LOp/NZSQc1kl1cgtCuLsPRj4 cQvm0IyQmjHRijGjkO/bsW248pk5BRVMv/Vl1ePYtmHwhNYdGeocq2KeQOyaA8peXm +p2fPBEemDYP2Ni8N7u8xo3lXJm1GFR/cKRaqzfQ= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/60441] Incorrect textual representation for std::mersenne_twister_engine Date: Tue, 23 May 2023 13:40:36 +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: 4.8.1 X-Bugzilla-Keywords: 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: 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=3D60441 --- Comment #2 from Jonathan Wakely --- Ignore that, it doesn't work. Due to the way we've implemented the mersenne twister state, we really do need to remember how much of the state has been used already, which is why we serialize the _M_p index into the textual representation.=