🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #299

Bug in int.BSTSet.cc

#299
From: palmer
Date: Thu, 27 Jul 1989 12:56
42 lines
1629 bytes
The following error occurs during "make tests" :

In method void intBSTSet::balance ():
int.BSTSet.cc:299: `root' was not declared (first use this function)
int.BSTSet.cc:299: (Each undeclared identifier is reported only once
int.BSTSet.cc:299: for each function it appears in.)
int.BSTSet.cc:306: `root' was not declared (first use this function)
int.BSTSet.cc:333: `count' was not declared (first use this function)
int.BSTSet.cc:354: `root' was not declared (first use this function)
int.BSTSet.cc:355: `root' was not declared (first use this function)
In method int intBSTSet::OK ():
int.BSTSet.cc:362: `root' was not declared (first use this function)
int.BSTSet.cc:363: `count' was not declared (first use this function)
int.BSTSet.cc:376: `count' was not declared (first use this function)
*** Error code 1

Stop.
*** Error code 1

Stop.


The bug is not immediately apparent since the functions 
leftmost(), rightmost(), and add() also access 'root'.

This seems to be the only compilation error.

If anyone has a fix, could you please send it to me (or bug-g++.)

		Thanks,


		Forrest Palmer

		palmer@mwsun.mitre.org

---------
System : Sun O.S. 3.5 on 3/280;  gcc 1.35,  g++ 1.35, libg++ 1.35.1


           
Technical Details
Message-ID: <8907271257.AA18043@mwsun.mitre.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!MWSUN.MITRE.ORG!palmer

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!MWSUN.MITRE.ORG!palmer
From: palmer@MWSUN.MITRE.ORG
Newsgroups: gnu.g++.bug
Subject: Bug in int.BSTSet.cc
Message-ID: <8907271257.AA18043@mwsun.mitre.org>
Date: 27 Jul 89 12:56:59 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 42