id summary reporter owner description type status milestone component version severity resolution keywords cc 7990 Copy constructor for transform_width has an initialization order reversal Shane Turner Robert Ramey "When compiling against Boost 1.53.0, GCC 4.4.3 and GCC 4.6.3 report an error regarding the order of initialization in the copy constructor: {{{ /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp: In copy constructor ‘boost::archive::iterators::transform_width::transform_width(const boost::archive::iterators::transform_width&) [with Base = boost::archive::iterators::binary_from_base64, int BitsOut = 8, int BitsIn = 6, CharType = unsigned char]’: /home/shane.turner/Workbench/boost-test/include/npString/Base64.hh:42: instantiated from here /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:104: error: ‘boost::archive::iterators::transform_width, 8, 6, unsigned char>::m_remaining_bits’ wil l be initialized after /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:101: error: ‘char boost::archive::iterators::transform_width, 8, 6, unsigned char>::m_buffer_in’ /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:119: error: when initialized here /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp: In copy constructor ‘boost::archive::iterators::transform_width::transform_width(const boost::archive::iterators::transform_width&) [with Base = const char*, int BitsOut = 6, int BitsIn = 8, CharType = unsigned char]’: /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/base64_from_binary.hpp:103: instantiated from ‘boost::archive::iterators::base64_from_binary::base64_from_binary(const boost::archive::iterators::base64_from_binary&) [with Base = boost::archive::iterators::transform_width, CharType = unsigned char]’ /home/shane.turner/Workbench/boost-test/include/npString/Base64.hh:20: instantiated from here /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:104: error: ‘boost::archive::iterators::transform_width::m_remaining_bits’ will be initialized after /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:101: error: ‘char boost::archive::iterators::transform_width::m_buffer_in’ /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:119: error: when initialized here }}} The fix is a simple swap of two lines in the copy constructor." Bugs closed Boost 1.54.0 serialization Boost Development Trunk Problem fixed shane.turner@…