[Bug c/107973] wrong warning with -Werror -fsanitize=address

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 5 14:36:28 GMT 2022


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldyh at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master since r13-1268-g8c99e307b20c502e, note that sanitizers tens to
increase false-positives of warnings:

https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
```
Note that sanitizers tend to increase the rate of false positive warnings, most
notably those around -Wmaybe-uninitialized. We recommend against combining
-Werror and [the use of] sanitizers.

```


More information about the Gcc-bugs mailing list