This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51209] New: The template _M_find_node in hashtable.h has a bad return value
- From: "hartmut.brandt at dlr dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Nov 2011 15:11:46 +0000
- Subject: [Bug libstdc++/51209] New: The template _M_find_node in hashtable.h has a bad return value
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51209
Bug #: 51209
Summary: The template _M_find_node in hashtable.h has a bad
return value
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hartmut.brandt@dlr.de
The function starting on line 872 of bits/hashtable.c should return a pointer
but contains a 'return false;' statement. Replacing the false with a nullptr
seems the correct solution.