id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1246,breakage in boost::python svn trunk,ndbecker2@…,Nikolay Mladenov,"New python function sig code breaks this test case (gcc-4.1.2): #include #include #include #include #include using namespace boost::python; struct base {}; struct concrete : public base {}; struct Test { Test (boost::shared_ptr _x) : x (_x) {} boost::shared_ptr x; }; BOOST_PYTHON_MODULE(test1) { class_ (""base"", ""abstract"", no_init); class_ > (""concrete"", ""concrete""); class_ (""Test"", init >()) .def_readonly (""x"", &Test::x, ""x"") <<<< this seems to trigger the error ; } g++ -o mod/test1.os -c -g -DBOOST_DISABLE_THREADS -O3 -ftree-vectorize -fstrict-aliasing -ffast-math -DNDEBUG -Wall -fPIC -Isrc -I/usr/local/src/boost.hg -I/usr/include/python2.5 mod/test1.cc /usr/local/src/boost.hg/boost/python/to_python_value.hpp: In member function 'const PyTypeObject* boost::python::detail::shared_ptr_to_python_value::get_pytype() const [with T = boost::shared_ptr&]': /usr/local/src/boost.hg/boost/python/detail/caller.hpp:102: instantiated from 'static const PyTypeObject* boost::python::detail::converter_target_type::get_pytype() [with ResultConverter = boost::python::to_python_value&>]' /usr/local/src/boost.hg/boost/python/detail/caller.hpp:242: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity<1u>::impl::signature() [with F = boost::python::detail::member, Test>, Policies = boost::python::return_value_policy, Sig = boost::mpl::vector2&, Test&>]' /usr/local/src/boost.hg/boost/python/object/py_function.hpp:48: instantiated from 'boost::python::detail::py_func_sig_info boost::python::objects::caller_py_function_impl::signature() const [with Caller = boost::python::detail::caller, Test>, boost::python::return_value_policy, boost::mpl::vector2&, Test&> >]' mod/test1.cc:22: instantiated from here /usr/local/src/boost.hg/boost/python/to_python_value.hpp:109: error: no matching function for call to 'boost::python::detail::shared_ptr_to_python_value&>::get_pytype(boost::type&>*) const' /usr/local/src/boost.hg/boost/python/to_python_value.hpp:109: note: candidates are: const PyTypeObject* boost::python::detail::shared_ptr_to_python_value::get_pytype() const [with T = boost::shared_ptr&] scons: *** [mod/test1.os] Error 1 scons: building terminated because of errors. Compilation exited abnormally with code 2 at Wed Sep 12 07:18:15 ",Bugs,closed,To Be Determined,python USE GITHUB,Boost Development Trunk,Showstopper,fixed,,rwgk@…