Path: utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!cwjcc!mailrus!rutgers!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!blanche.ics.uci.edu!schmidt
From: schmidt@blanche.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Small bug in libg++
Message-ID: <1030@paris.ics.uci.edu>
Date: 2 Dec 88 07:40:21 GMT
Sender: news@paris.ics.uci.edu
Reply-To: Doug Schmidt 
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 21

Hi,

  I believe the following is a small bug in the VHashTable.h.proto
file.  In the traversal member function ``get'' the test:

  if (pos <= 0)
    h->error("operation on null traverser");

should actually be:

  if (pos < 0)
    h->error("operation on null traverser");

Since otherwise the iterator gets a fatal error before it even begins!
VHashSet also has this problem, but VHashAssoc appears correct.

Doug
--
schmidt@ics.uci.edu (ARPA) |   Per me si va nella citta' dolente.
                           |   Per me si va nell'eterno dolore.
                           |   Per me si va tra la perduta gente.
                           |   Lasciate ogni speranza o voi ch'entrate.