[Boost-bugs] [Boost C++ Libraries] #6369: gcc -Wshadow typedef patch

Subject: [Boost-bugs] [Boost C++ Libraries] #6369: gcc -Wshadow typedef patch
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-09 11:08:12


#6369: gcc -Wshadow typedef patch
--------------------------------+-------------------------------------------
 Reporter: caolanm@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.44.0
 Severity: Problem | Keywords:
--------------------------------+-------------------------------------------
 With -Wshadow and gcc 4.6.1 I get...

 LibreOffice/core/solver/callcatcher/inc/boost/date_time/gregorian/gregorian_io.hpp:
 In function 'std::basic_istream<_CharT, _Traits>&
 boost::gregorian::operator>>(std::basic_istream<_CharT, _Traits>&,
 boost::gregorian::date&)':
 LibreOffice/core/solver/callcatcher/inc/boost/date_time/gregorian/gregorian_io.hpp:80:67:
 error: declaration of 'date_input_facet' shadows a global declaration
 [-Werror=shadow]
 /home/caolan/LibreOffice/core/solver/callcatcher/inc/boost/date_time/gregorian/gregorian_io.hpp:43:57:
 error: shadowed declaration is here [-Werror=shadow]

 patch to silence these attached

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6369>
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:08 UTC