On Fri, 27 Feb 2026 13:15:06 GMT, Kim Barrett <[email protected]> wrote:

> And this bug may cause us further problems. Anyone who tries to use
> `std::stable_sort` is going to introduce a clang+glibc12 problem. And turning
> off deprecation warnings more widely isn't especially appealing.

If the `std::stable_sort` beening invoked inside jdk, maybe we can disable the 
depracated warning by "#pragma clang diagnostic ignored", but this make code 
looks ugly.

```c++
#ifdef __clang__
#pragma clang diagnostic push 
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <algorithm>
#ifdef __clang__
#pragma clang diagnostic pop
#endif

int main() {
    std::stable_sort((int *)0, (int *)0);
}

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29919#issuecomment-3976280703

Reply via email to