🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

oxymornic messages

#1792
From: Dirk Grunwald
Date: Sun, 26 Mar 1989 16:54
25 lines
1290 bytes
g++ 1.34.1, config `sun3-os4' or config `umax'.

g++ incorrectly reports `first use' messages, although it's hardly a bug.
I venture that it's because you could define `value' in the main scope and
either of the if-then-else scopes, and thus each introduction counts as 
a ``first reference''.

In method enum bool LinkBi2::route (int, int, int (=  0 )):
../Src/LinkBi2.cc:31: `value' was not declared (first use this function)
../Src/LinkBi2.cc:34: `value' was not declared (first use this function)
../Src/LinkBi2.cc:36: `value' was not declared (first use this function)

bool
LinkBi2::route(int here, int to, int)
{
    double thres = computeThreshold();
    if ( thres < 0.5 || thres > 0.8) {
	value = routeFull( here, to, 0);		<< line 32
    }
    else {
	value = routeBlock( here, to, 0) ;		<< line 34
    }
    return( value );					<< line 36
}
Technical Details
Message-ID: <8903261654.AA26878@m.cs.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!M.CS.UIUC.EDU!grunwald

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!M.CS.UIUC.EDU!grunwald
From: grunwald@M.CS.UIUC.EDU (Dirk Grunwald)
Newsgroups: gnu.g++.bug
Subject: oxymornic messages
Message-ID: <8903261654.AA26878@m.cs.uiuc.edu>
Date: 26 Mar 89 16:54:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: grunwald@m.cs.uiuc.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 25