From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B935A3858C2F; Thu, 26 Jan 2023 09:51:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B935A3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674726680; bh=kc3PxrKph/Z/AAAjgn8Gi5qVlW4gTOiJtgK5btbVrEQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RKah7GGC+PIe/yxTGnQMQYZqXNsS4lRBROO6LFnwVwfvNp3zIBYm0Rki3sjQyI17x icf9kbx3HhbRkr9WdJxILeIISWcxiySu3XOl/dNwUtoZl4uvhcFonsddz/knewi2Hf B/fLG1yOyRDHZS8cQYIH+XfWWBReXw6OxbbUSunE= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108554] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag Date: Thu, 26 Jan 2023 09:51:19 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D108554 --- Comment #1 from Jonathan Wakely --- (In reply to Jan de Cuveland from comment #0) > This behavior does not show up in GCC 9, 10, and 11. It does if you use -Wsystem-headers -- the only thing that changed is that = the compiler now ignores whether the location is in a system header for many of warnings with the most false positives.=