From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B85DA3858D28; Thu, 26 Jan 2023 13:41:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B85DA3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674740513; bh=T80AKNRSDclUjq4P5Ad7ocH+gfO8C4iRMqvqFNcLFSA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U5CbhHZkrjJPTx8BGbl/QFmVQdj52RjE9SKTjf7aDslrteVM/XsX+0TIAZFmgaUz8 Mm+6O8XrGF4GlusL69BqtVIyS2ZpPZnZTXpcJxBSx9hEOHsWt0gsYyqL3oPuektAaX z+LOAPcIZemxCk9itWNCqun7AhuN3BJcSjpReIRI= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108554] [12 Regression] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag Date: Thu, 26 Jan 2023 13:41: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: 12.2.0 X-Bugzilla-Keywords: diagnostic 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: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail target_milestone short_desc 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=3D108554 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |11.3.0 Known to fail| |12.2.0 Target Milestone|--- |12.3 Summary|Warning "null pointer |[12 Regression] Warning |dereferece" raised when |"null pointer dereferece" |extracting a unique_ptr |raised when extracting a |from a map and any "-O" |unique_ptr from a map and |flag |any "-O" flag --- Comment #6 from Jonathan Wakely --- Fixed on trunk, but this should be backported to gcc-12 too. The warning is present on older branches but suppressed by default, so it's= not important to backport before to older branches.=