This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51209] The template _M_find_node in hashtable.h has a bad return value
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Nov 2011 16:09:36 +0000
- Subject: [Bug libstdc++/51209] The template _M_find_node in hashtable.h has a bad return value
- Auto-submitted: auto-generated
- References: <bug-51209-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51209
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-11-18 16:09:36 UTC ---
Author: paolo
Date: Fri Nov 18 16:09:29 2011
New Revision: 181480
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181480
Log:
2011-11-18 Harti Brandt <hartmut.brandt@dlr.de>
PR libstdc++/51209
* include/bits/hashtable.h (_Hashtable<>::_M_find_node): Return
nullptr when no node is found.
* include/tr1/hashtable.h (_Hashtable<>::_M_find_node): Return
zero when no node is found.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/hashtable.h
trunk/libstdc++-v3/include/tr1/hashtable.h