[Bug libstdc++/10378] cannot add object with inplace new into STL collections

pinskia@physics.uc.edu gcc-bugzilla@gcc.gnu.org
Mon May 26 19:11:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia@physics.uc.edu  2003-05-26 19:09 -------
Is this a real bug according to the c++ standard (I do not have the standard):
I get the same (mainline [20030525]) as the bug says:
/Users/pinskia/fsf-nocheck/include/c++/3.4/bits/stl_construct.h: In function `void 
std::_Construct(_T1*, const _T2&) [with _T1 = Bob, _T2 = Bob]':
/Users/pinskia/fsf-nocheck/include/c++/3.4/bits/stl_list.h:413:   instantiated from 
`std::_List_node<_Tp>* std::list<_Tp, _Alloc>::_M_create_node(const _Tp&) [with _Tp = 
Bob, _Alloc = std::allocator<Bob>]'
/Users/pinskia/fsf-nocheck/include/c++/3.4/bits/list.tcc:89:   instantiated from `typename 
std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp, _Tp&, 
_Tp*>, const _Tp&) [with _Tp = Bob, _Alloc = std::allocator<Bob>]'
/Users/pinskia/fsf-nocheck/include/c++/3.4/bits/stl_list.h:729:   instantiated from `void 
std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = Bob, _Alloc = std::allocator<
Bob>]'
pr10378.cc:25:   instantiated from here
/Users/pinskia/fsf-nocheck/include/c++/3.4/bits/stl_construct.h:78: error: no matching 
function for call to `Bob::operator new(long unsigned int, void*&)'
pr10378.cc:10: note: candidates are: static void* Bob::operator new(long unsigned int)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list