Boost C++ Libraries: Ticket #2612: [date_time] warning for use of uninitialized variable https://svn.boost.org/trac10/ticket/2612 <p> /import/apu/projects/1/VISTA/vibe/usr/BOOST/include/boost-1_37/boost/date_time/constrained_value.hpp: In static member function 'static ymd_type_ boost::date_time::gregorian_calendar_base&lt;ymd_type_, date_int_type_&gt;::from_day_number(date_int_type_) [with ymd_type_ = boost::date_time::year_month_day_base&lt;boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day&gt;, date_int_type_ = long unsigned int]': /import/apu/projects/1/VISTA/vibe/usr/BOOST/include/boost-1_37/boost/date_time/constrained_value.hpp:64: warning: 'year.boost::gregorian::greg_year::&lt;anonymous&gt;.boost::CV::constrained_value&lt;boost::CV::simple_exception_policy&lt;short unsigned int, 1400u, 10000u, boost::gregorian::bad_year&gt; &gt;::value_' is used uninitialized in this function /import/apu/projects/1/VISTA/vibe/usr/BOOST/include/boost-1_37/boost/date_time/gregorian_calendar.ipp:122: note: 'year.boost::gregorian::greg_year::&lt;anonymous&gt;.boost::CV::constrained_value&lt;boost::CV::simple_exception_policy&lt;short unsigned int, 1400u, 10000u, boost::gregorian::bad_year&gt; &gt;::value_' was declared here </p> <p> PLATFORM: ubuntu linux COMPILER: gcc-4.3.0 DATE_TIME flags: -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG COMPILER flags: -Wall -Werror -03 -g -ansi -pedantic </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2612 Trac 1.4.3 manfred doudar <manfred.doudar@…> Wed, 24 Dec 2008 11:21:00 GMT cc set https://svn.boost.org/trac10/ticket/2612#comment:1 https://svn.boost.org/trac10/ticket/2612#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">manfred.doudar@…</span> added </li> </ul> Ticket manfred doudar <manfred.doudar@…> Tue, 30 Dec 2008 18:03:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2612#comment:2 https://svn.boost.org/trac10/ticket/2612#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Alerted by Andrey Semashev that this has been fixed. Did check trunk &amp; branch-release for 1.38, and warnings when optimizations are turned on are now extant. </p> Ticket