]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix access error in __gnu_test::uneq_allocator
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 Nov 2023 14:34:59 +0000 (14:34 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 23 Nov 2023 17:44:26 +0000 (17:44 +0000)
commit0585daf7de0673ade9feca1be66a68178786b48d
treeeeb400f294d275b9de6c23f5fe9bd503607f9c4a
parentdc2dfda0ece59db023dca92c8d44b130f3fdf2cc
libstdc++: Fix access error in __gnu_test::uneq_allocator

The operator== function is only a friend of the LHS argument, so cannot
access the private member of the RHS argument. Use the public accessor
instead.

libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_allocator.h (uneq_allocator): Fix
equality operator for heterogeneous comparisons.
libstdc++-v3/testsuite/util/testsuite_allocator.h