From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A9513847718; Fri, 3 May 2024 17:19:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A9513847718 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714756743; bh=z9YTDDJ56/IQ7mubftGO3iiLRYJw4I3g1PtWkiDx6L4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q8/TA7CJe7VF/Uq3Bt2Szz5jRObHCzvPY3+jes7fTQw4oxJTca3TwYaexWb4G5/G6 5OCRM8poLfndxUdx1W+vtvU1TQPchZyvCgSbGi1OjP4YmJVCTvwchrF71M5dfmcIPI H4G2X4ObRXpLPKBLzycgjpJST6C3GfUPFma/Ttlc= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/77704] Data race on std::ctype Date: Fri, 03 May 2024 17:19:02 +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: 6.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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=3D77704 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org --- Comment #9 from Jonathan Wakely --- There's a related data race in std::basic_ios::fill() because of these muta= ble members: mutable char_type _M_fill; mutable bool _M_fill_init; char_type fill() const { if (!_M_fill_init) { _M_fill =3D this->widen(' '); _M_fill_init =3D true; } return _M_fill; } That one's easier to fix.=