```cpp #define _GLIBCXX_ASSERTIONS #include <vector> void foo(std::vector<double> &vec) { auto count = ssize(vec); for (decltype(count) i = 0; i < count; ++i) vec[i] += 1; } ``` `-mllvm -enable-constraint-elimination` does not help. With `size` instead of `ssize` bounds check is eliminated. https://godbolt.org/z/f5Gn9eKrc