[Bug tree-optimization/118253] libstdc++: array subscript 0 is outside array bounds of ‘std::__shared_count<> [0]’

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 30 23:39:17 GMT 2024


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>-fsanitize=address,undefined

That is documented to cause extra warnings.
See slightly below
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Instrumentation-Options.html#index-fsanitize_003dbuiltin:
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