[Bug libstdc++/51209] New: The template _M_find_node in hashtable.h has a bad return value
hartmut.brandt at dlr dot de
gcc-bugzilla@gcc.gnu.org
Fri Nov 18 15:32:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list