On Wed, 25 Feb 2026 14:04:40 GMT, SendaoYan <[email protected]> wrote:

> Hi all,
> 
> clang23+gcc12(ubuntu) generate compiler warning 
> "get_temporary_buffer<testing::TestInfo *>' is deprecated 
> [-Werror,-Wdeprecated-declarations]". And this compiler warning from 
> googletest file googletest/src/gtest.cc, googletest/src/gtest.cc invoke 
> `std::stable_sort`, and `std::stable_sort` invoke deprecated 
> `std::get_temporary_buffer`. So this warning unrelated JDK totally.
> 
> This PR disable deprecated-declarations warning when building libgtest. 
> Change has been verified locally.

I want to understand the problem better here.  Why hasn't this already been 
encountered?  I don't really like the
proposed solution in isolation.  I'm investigating, so please hold off on 
integration.

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

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

Reply via email to