diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-03-18 18:37:01 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-04-02 10:40:20 +0100 |
commit | 6621e5a1d1195137a1dd6d917961ab23609a244c (patch) | |
tree | b0e61df05d0f43015b11e9d56c1454197118313b /gcc/rust/backend/rust-compile-expr.cc | |
parent | 634215cdc3c569f9a9a247dcd4d9a4d6ce68ad57 (diff) | |
download | gcc-6621e5a1d1195137a1dd6d917961ab23609a244c.zip gcc-6621e5a1d1195137a1dd6d917961ab23609a244c.tar.gz gcc-6621e5a1d1195137a1dd6d917961ab23609a244c.tar.bz2 |
cobol: Fix incorrect use of std::remove_if
The call to std::remove_if used here doesn't remove any elements, it
just overwrites the "removed" elements with later elements, leaving the
total number of elements unchanged. Use std::list::remove_if to actually
remove those unwanted elements from the list.
gcc/cobol/ChangeLog:
* symfind.cc (finalize_symbol_map2): Use std::list::remove_if
instead of std::remove_if.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
0 files changed, 0 insertions, 0 deletions