grunwald@M.CS.UIUC.EDU (Dirk Grunwald) (03/27/89)
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
}