[Boost-bugs] [Boost C++ Libraries] #1931: Boost.Python headers won't compile with GCC 4.3

Subject: [Boost-bugs] [Boost C++ Libraries] #1931: Boost.Python headers won't compile with GCC 4.3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-19 15:54:33


#1931: Boost.Python headers won't compile with GCC 4.3
------------------------------+---------------------------------------------
 Reporter: vbe_at_[hidden] | Owner: dave
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Python
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 To reproduce this bug it is sufficient to compile this program:

 #include <boost/python.hpp>

 int main(int argc, char** argv)
 {
   return 0;
 }

 The following error is thrown:

 ../include/boost/python/detail/def_helper.hpp:192: error: declaration of
 'typename
 boost::python::detail::keyword_extract<boost::tuples::tuple<const T1&,
 const T2&, const T3&, const T4&, boost::python::default_call_policies,
 boost::python::detail::keywords<0u>, const char*, void
 (boost::python::detail::not_specified::*)(), boost::tuples::null_type,
 boost::tuples::null_type> >::result_type
 boost::python::detail::def_helper<T1, T2, T3, T4>::keywords() const'
 ../include/boost/python/args_fwd.hpp:35: error: changes meaning of
 'keywords' from 'struct boost::python::detail::keywords<0u>'

 The reason is that the name 'keyword' is used both for a struct
 (args_fwd.hpp, line 34) and for a function (detail/def_helper.hpp, line
 189) in the same namespace. GCC 4.3 does not allow this.

 The fix is simple: rename either the struct or the function.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1931>
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:49:57 UTC