From 5230022c0e8bfd9dbc600fd6e21e22bf161c7d84 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Fri, 23 Apr 2010 22:01:56 +0000 Subject: [PATCH] Added BOOST_NO_COMPLETE_VALUE_INITIALIZATION to IBM XL C++ <= V10.1.0 (trunk), see #4080. [SVN r61516] --- 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: //