[Bug libstdc++/108554] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 26 09:51:19 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108554

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(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.


More information about the Gcc-bugs mailing list