[libcxx-commits] [libcxx] [libc++] Fix ambiguous call to std::max in vector<bool> (PR #119801)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 26 09:13:04 PDT 2025


================
@@ -0,0 +1,102 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <vector>
+// vector<bool>
+
+// XFAIL: FROZEN-CXX03-HEADERS-FIXME
+
+// This test ensures that the internal call to std::max within vector<bool> is not ambiguous under various size types.
+// Related issue: https://github.com/llvm/llvm-project/issues/121713.
----------------
ldionne wrote:

```suggestion
// This test ensures that std::vector<bool> handles allocator types with small size types
// properly. Related issue: https://github.com/llvm/llvm-project/issues/121713.
```

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


More information about the libcxx-commits mailing list