From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1C8823858C5F; Tue, 28 Mar 2023 10:05:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C8823858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679997916; bh=/5BxkQuQfSPpGaNcwbsId4kB5nRbIa0WoV2OxVvLiFQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M66O26MSVTfNcsE3usa1Iolr7anZwuWLsoUMbklZUXT/4ec1pT7RIzaPjSoWCyQa8 jxsqJTYHvGtlfIlu76g4ijio6RH6xIqEKryt6kmdlpN4Z0WylpYUOXnqDWDQ5X2RWc 3bhX8J4qMFtnQJo+Jo2+h/gktwchCbfm20hXnfB0= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109299] [12/13 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2 Date: Tue, 28 Mar 2023 10:05:15 +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.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D109299 --- Comment #9 from Jonathan Wakely --- And the reason I put the hint in _M_is_local() not in the function giving t= he warning is that it might help in other functions too. I haven't tested it yet though.=