Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61642 - trunk/boost/config/compiler
From: nielsdekker_at_[hidden]
Date: 2010-04-28 04:50:24


Author: niels_dekker
Date: 2010-04-28 04:50:23 EDT (Wed, 28 Apr 2010)
New Revision: 61642
URL: http://svn.boost.org/trac/boost/changeset/61642

Log:
Added BOOST_NO_COMPLETE_VALUE_INITIALIZATION to GCC < 4.4 (trunk), see #4080.
Text files modified:
   trunk/boost/config/compiler/gcc.hpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/boost/config/compiler/gcc.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc.hpp (original)
+++ trunk/boost/config/compiler/gcc.hpp 2010-04-28 04:50:23 EDT (Wed, 28 Apr 2010)
@@ -69,6 +69,18 @@
 # endif
 #endif
 
+#if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 4 )
+// Previous versions of GCC did not completely implement value-initialization:
+// GCC Bug 30111, "Value-initialization of POD base class doesn't initialize
+// members", reported by Jonathan Wakely in 2006,
+// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30111 (fixed for GCC 4.4)
+// GCC Bug 33916, "Default constructor fails to initialize array members",
+// reported by Michael Elizabeth Chastain in 2007,
+// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33916 (fixed for GCC 4.2.4)
+// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues
+#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION
+#endif
+
 #ifndef __EXCEPTIONS
 # define BOOST_NO_EXCEPTIONS
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk