This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13864] New: stl_hastable.h Line 527
- From: "greg dot bertin at solacesystems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2004 05:42:42 -0000
- Subject: [Bug libstdc++/13864] New: stl_hastable.h Line 527
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
_Construct(&__n->_M_val, __obj); being called with an unitialized memory
pointer (__n) being passed as the first parameter (i.e. it is memory allocated
from an allocator in line 524). Memory should be default constructed first to
ensure the class' copy constructor behaves properly:
try {
_Construct(&__n->_M_val);
_Construct(&__n->_M_val, __obj);
return __n;
}
--
Summary: stl_hastable.h Line 527
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: greg dot bertin at solacesystems dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13864