aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-03-31 12:30:44 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2025-04-01 19:38:33 +0100
commit844eed3364309bd20cbb7d6793a16b7c6b889ba4 (patch)
tree437d904bab0e91b641f9a16b74fd7bd5d3816713 /gcc/fortran/interface.cc
parent2fd74c790556a3de6c42efa564781aa2ac0e3596 (diff)
downloadgcc-844eed3364309bd20cbb7d6793a16b7c6b889ba4.zip
gcc-844eed3364309bd20cbb7d6793a16b7c6b889ba4.tar.gz
gcc-844eed3364309bd20cbb7d6793a16b7c6b889ba4.tar.bz2
libstdc++: Fix -Warray-bounds warning in std::vector::resize [PR114945]
This is yet another false positive warning fix. This time the compiler can't prove that when the vector has sufficient excess capacity to append new elements, the pointer to the existing storage is not null. libstdc++-v3/ChangeLog: PR libstdc++/114945 * include/bits/vector.tcc (vector::_M_default_append): Add unreachable condition so the compiler knows that _M_finish is not null. * testsuite/23_containers/vector/capacity/114945.cc: New test. Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
Diffstat (limited to 'gcc/fortran/interface.cc')
0 files changed, 0 insertions, 0 deletions