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

Bug#101371: g++ output



[fog;/tmp]-4> g++-3.0 -o z z.C
/usr/include/g++-v3/bits/stl_construct.h: In function `void
   std::_Construct(_T1*, const _T2&) [with _T1 = std::auto_ptr<int>, _T2 =
   std::auto_ptr<int>]':
/usr/include/g++-v3/bits/stl_list.h:240:   instantiated from `std::_List_node<_Tp>* std::list<_Tp, _Alloc>::_M_create_node(const _Tp&) [with _Tp = std::auto_ptr<int>, _Alloc = std::allocator<std::auto_ptr<int> >]'
/usr/include/g++-v3/bits/stl_list.h:291:   instantiated from `std::_List_iterator<_Tp, _Tp&, _Tp*> std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp, _Tp&, _Tp*>, const _Tp&) [with _Tp = std::auto_ptr<int>, _Alloc = std::allocator<std::auto_ptr<int> >]'
/usr/include/g++-v3/bits/stl_list.h:324:   instantiated from `void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::auto_ptr<int>, _Alloc = std::allocator<std::auto_ptr<int> >]'
z.C:7:   instantiated from here
/usr/include/g++-v3/bits/stl_construct.h:49: passing `const std::auto_ptr<int>'
   as `this' argument of `std::auto_ptr<_Tp>::operator
   std::auto_ptr_ref<_Tp1>() [with _Tp1 = int, _Tp = int]' discards qualifiers

-- 
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| wichert@wiggy.net                   http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |



Reply to: