Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Dirk Grunwald
Sun, 26 Mar 1989 16:54
oxymornic messages
Author: Dirk Grunwald
Date: Sun, 26 Mar 1989 16:54
Date: Sun, 26 Mar 1989 16:54
25 lines
1290 bytes
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
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads