This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51209] The template _M_find_node in hashtable.h has a bad return value


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]