Bug 133815 - games-puzzle/quadra refuse to emerge with gcc-4.1
Bug#: 133815 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: tupone@gentoo.org
Component: Games
URL: 
Summary: games-puzzle/quadra refuse to emerge with gcc-4.1
Keywords:  
Status Whiteboard: 
Opened: 2006-05-19 14:45 0000
Description:   Opened: 2006-05-19 14:45 0000
This is the message that stop the compiling
skelton/include/array.h: In member function 'void Array<T>::add_before(const
T&,  int) [with T = Zone*]':
skelton/include/inter.h:72:   instantiated from here
skelton/include/array.h:40: error: no matching function for call to
'std::vector <Zone*, std::allocator<Zone*> >::insert(Zone**, Zone* const&)'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/bits/vector.tcc:93: note:
ca ndidates are: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp,
_Allo c>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp,
_Alloc>: :_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&)
[with _Tp = Zo ne*, _Alloc = std::allocator<Zone*>]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/bits/stl_vector.h:657:
note:                  void std::vector<_Tp,
_Alloc>::insert(__gnu_cxx::__normal_itera tor<typename std::_Vector_base<_Tp,
_Alloc>::_Tp_alloc_type::pointer, std::vecto r<_Tp, _Alloc> >, size_t, const
_Tp&) [with _Tp = Zone*, _Alloc = std::allocator <Zone*>]

------- Comment #1 From Mark Loeser 2006-05-21 14:02:46 0000 -------
Created an attachment (id=87211) [details]
gcc-4.1 patch

This should fix everything.  Make sure it still works, since I'm not sure how
some parts of it worked to begin with :)

------- Comment #2 From Tupone Alfredo 2006-05-31 11:56:57 0000 -------
Fixed in portage, patched needed a little working but thanks for the hints