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] New: The template _M_find_node in hashtable.h has a bad return value


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.


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