[libcxx-commits] [libcxx] [libc++] Fix behavior for `get_temporary_buffer` with non-positive size (PR #206871)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 1 00:01:32 PDT 2026


================
@@ -27,6 +27,11 @@
 #include <memory>
 #include <utility>
 
+#include "test_macros.h"
+
+// This warning is coupled with completeness of control flow analysis which is affected by optimizations.
+TEST_GCC_DIAGNOSTIC_IGNORED("-Wno-alloc-size-larger-than")
----------------
philnik777 wrote:

Can we just use `// ADDITIONAL_COMPILE_FLAGS`?

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


More information about the libcxx-commits mailing list