From fbf89272cc0cf78546a26291e01045e273460593 Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Fri, 19 Jul 2019 17:17:07 +0300 Subject: [PATCH] ARMC5 : permit zero size --- platform/cxxsupport/TOOLCHAIN_ARMC5/array | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/cxxsupport/TOOLCHAIN_ARMC5/array b/platform/cxxsupport/TOOLCHAIN_ARMC5/array index 294fd62410..4f214595d0 100644 --- a/platform/cxxsupport/TOOLCHAIN_ARMC5/array +++ b/platform/cxxsupport/TOOLCHAIN_ARMC5/array @@ -30,7 +30,7 @@ struct reverse_iterator; template struct array { // [array.overview] - _TypeT _C_elem[_Size]; + _TypeT _C_elem[_Size != 0 ? _Size : 1]; using value_type = _TypeT; using size_type = size_t;