[Boost-bugs] [Boost C++ Libraries] #5614: date bug in release (boost 1.46)

Subject: [Boost-bugs] [Boost C++ Libraries] #5614: date bug in release (boost 1.46)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-16 14:02:08


#5614: date bug in release (boost 1.46)
-----------------------------------+----------------------------------------
 Reporter: ludviglarsson@… | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 The bug is present only in Release (WinXP + Boost 1.46) not in Debug.

 The bug is produced as follows:

 {{{
 #include "boost/date_time/gregorian/gregorian.hpp"
 using namespace boost::gregorian;

 void func()
 {
  date todaysdate(day_clock::local_day());
  printf("%i-%02i-%02i\n",todaysdate.year(), todaysdate.month(),
 todaysdate.day());
 }
 }}}


 This prints gibberish values or more precisely, the lowest 16 bits are
 correct but the highest 16 bits contain random data.

 The date itself seems to work perfectly well, I can compare dates,
 increment and so on, it is only the year(), month() etc. functions that
 seems broken.


 HTH & keep up the good work!!

 Valmond

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5614>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC