help-rcs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug c++/14528] New: Regression compiling Boost.Python test


From: rwgk at yahoo dot com
Subject: [Bug c++/14528] New: Regression compiling Boost.Python test
Date: 11 Mar 2004 10:40:25 -0000

gcc-3_4-branch from 2004/03/11, 01:01am PST
Configured with: /net/worm/scratch1/rwgk/gcc-3_4-branch/configure --
prefix=/usr/local_cci/gcc-3_4-branch_2004_03_11 --enable-languages=c,c++
Redhat Linux 8.0
Boost CVS from 2004/03/10, 13:06 PST

% g++ -fPIC -ftemplate-depth-120 -w -DNDEBUG -O3 -ffast-math -
DBOOST_PYTHON_MAX_BASES=2 -I/net/worm/scratch1/rwgk/hot/boost -
I/usr/include/python2.2 -
E /net/worm/scratch1/rwgk/hot/boost/libs/python/test/auto_ptr.cpp > 
auto_ptr_pp.cpp

% g++ -fPIC -ftemplate-depth-120 -w -O3 -ffast-math -c auto_ptr_pp.cpp

/net/worm/scratch1/rwgk/hot/boost/boost/python/detail/invoke.hpp: In function 
`PyObject* boost::python::detail::invoke(boost::python::detail::invoke_tag_< 
false,  false>, const RC&, F&, AC0&) [with RC = 
boost::python::to_python_value<const std::auto_ptr<X>&>, F = std::auto_ptr<X> 
(*)(boost::python::api::object), AC0 = 
boost::python::arg_from_python<boost::python::api::object>]':
/net/worm/scratch1/rwgk/hot/boost/boost/python/detail/caller.hpp:199:   
instantiated from `PyObject* boost::python::detail::caller_arity<1u>::impl<F, 
Policies, Sig>::operator()(PyObject*, PyObject*) [with F = std::auto_ptr<X> (*)
(boost::python::api::object), Policies = boost::python::default_call_policies, 
Sig = boost::mpl::vector2<std::auto_ptr<X>, boost::python::api::object>]'
/net/worm/scratch1/rwgk/hot/boost/boost/python/object/py_function.hpp:39:   
instantiated from `PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = boost::python::detail::caller<std::auto_ptr<X> (*)
(boost::python::api::object), boost::python::default_call_policies, 
boost::mpl::vector2<std::auto_ptr<X>, boost::python::api::object> >]'
/net/worm/scratch1/rwgk/hot/boost/libs/python/test/auto_ptr.cpp:90:   
instantiated from here
/net/worm/scratch1/rwgk/hot/boost/boost/python/detail/invoke.hpp:76: error: 
passing `const std::auto_ptr<X>' as `this' argument of 
`std::auto_ptr<_Tp>::operator std::auto_ptr_ref<_Tp1>() [with _Tp1 = X, _Tp = 
X]' discards qualifiers
/net/worm/scratch1/rwgk/hot/boost/boost/python/detail/invoke.hpp: In function 
`PyObject* boost::python::detail::invoke(boost::python::detail::invoke_tag_< 
false,  false>, const RC&, F&) [with RC = boost::python::to_python_value<const 
std::auto_ptr<X>&>, F = std::auto_ptr<X> (*)()]':
/net/worm/scratch1/rwgk/hot/boost/boost/python/detail/caller.hpp:199:   
instantiated from `PyObject* boost::python::detail::caller_arity<0u>::impl<F, 
Policies, Sig>::operator()(PyObject*, PyObject*) [with F = std::auto_ptr<X> (*)
(), Policies = boost::python::default_call_policies, Sig = 
boost::mpl::vector1<std::auto_ptr<X> >]'
/net/worm/scratch1/rwgk/hot/boost/boost/python/object/py_function.hpp:39:   
instantiated from `PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = boost::python::detail::caller<std::auto_ptr<X> (*)(), 
boost::python::default_call_policies, boost::mpl::vector1<std::auto_ptr<X> > >]'
/net/worm/scratch1/rwgk/hot/boost/libs/python/test/auto_ptr.cpp:90:   
instantiated from here
/net/worm/scratch1/rwgk/hot/boost/boost/python/detail/invoke.hpp:76: error: 
passing `const std::auto_ptr<X>' as `this' argument of 
`std::auto_ptr<_Tp>::operator std::auto_ptr_ref<_Tp1>() [with _Tp1 = X, _Tp = 
X]' discards qualifiers

The same code compiles with g++ (GCC) 3.4.0 20040220(prerelease) and many 
other compilers.

I will attach the preprocessed source code. The same file is also available 
here:

http://cci.lbl.gov/~rwgk/bugs/gcc340/auto_ptr_pp.cpp.gz

-- 
           Summary: Regression compiling Boost.Python test
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rwgk at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14528




reply via email to

[Prev in Thread] Current Thread [Next in Thread]