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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <[email protected]>:

https://gcc.gnu.org/g:74e0bb3faacfccfdf5633ab7ad3a15549d4a954d

commit r16-7106-g74e0bb3faacfccfdf5633ab7ad3a15549d4a954d
Author: Jonathan Wakely <[email protected]>
Date:   Fri Jan 23 14:25:03 2026 +0000

    libstdc++: Disable false positive middle end warnings in std::shared_ptr
[PR122197]

    Speculative devirtualization in GCC 16 causes some false positive
    warnings for unreachable paths. Use diagnostic pragmas to suppress
    those warnings until the regression is fixed.

    libstdc++-v3/ChangeLog:

            PR tree-optimization/122197
            * include/bits/shared_ptr_base.h (~_Sp_counted_deleter): Use
            diagnostic pragam to disable -Wfree-nonheap-object false
            positive.
            (~_Sp_counted_ptr_inplace): Likewise for -Warray-bounds false
            positive.

    Reviewed-by: Tomasz KamiÅski <[email protected]>

Reply via email to