[pkg-boost-devel] Bug#495322: strange error :-) please edit subject

Erik Thiele erikyyy at erikyyy.de
Sat Aug 16 08:29:47 UTC 2008


Package: libboost-date-time-dev
Version: 1.34.1-11


cat > foo.cpp <<EOF
#include <boost/date_time/posix_time/ptime.hpp>

void foo(boost::posix_time::ptime x)
{
  x.date();
}
EOF

g++ -Wall -Werror -O2 -c foo.cpp
cc1plus: warnings being treated as errors
/usr/include/boost/date_time/constrained_value.hpp: In function ‘void 
foo(boost::posix_time::ptime)’:
/usr/include/boost/date_time/constrained_value.hpp:64: 
error: ‘year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short 
unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_’ may be 
used uninitialized in this function
/usr/include/boost/date_time/gregorian_calendar.ipp:122: 
note: ‘year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short 
unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_’ was 
declared here





More information about the pkg-boost-devel mailing list