From fb86556f483ca240d809c339bf2ae70c2cb6fc3e Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sat, 1 May 2010 22:28:24 +0000 Subject: [PATCH] Redid adding BOOST_NO_COMPLETE_VALUE_INITIALIZATION to IBM XL C++ <= V10.1.0 (trunk), as [61516]. The addition of heap objects to boost_no_complete_value_initialization::test() [61552] did not cause any extra failures. See #4080. [SVN r61725] --- include/boost/config/compiler/vacpp.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/config/compiler/vacpp.hpp b/include/boost/config/compiler/vacpp.hpp index 01956d3a..36c8288f 100644 --- a/include/boost/config/compiler/vacpp.hpp +++ b/include/boost/config/compiler/vacpp.hpp @@ -30,6 +30,14 @@ # define BOOST_NO_INITIALIZER_LISTS #endif +#if (__IBMCPP__ <= 1010) +// XL C++ V10.1.0.0 may not always value-initialize a temporary object T(), +// when T is a non-POD aggregate class type. Michael Wong (IBM Canada Ltd) +// has confirmed this issue and gave it high priority. +// -- Niels Dekker (LKEB), 2010. +# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION +#endif + // // On AIX thread support seems to be indicated by _THREAD_SAFE: //