[libcxx-commits] [libcxx] [libc++] Add assertions for potential OOB reads in std::nth_element (PR #67023)

Daniel Kutenin via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 22 01:10:16 PDT 2023


danlark1 wrote:

I have a fun error in debug mode

```
/home/libcxx-builder/.buildkite-agent/builds/google-libcxx-builder-e33075b085b1-1/llvm-project/libcxx-ci/build/generic-debug-mode/include/c++/v1/__algorithm/nth_element.h:46:1: error: function '__nth_element' has cognitive complexity of 144 (threshold 143) [readability-function-cognitive-complexity,-warnings-as-errors]
```

https://github.com/llvm/llvm-project/pull/67023


More information about the libcxx-commits mailing list