20 Aug
2005
20 Aug
'05
4:53 p.m.
On Wed, 17 Aug 2005 15:24:59 +0100, Ben Hutchings wrote
Paul wrote:
I got the following warning while compiling with (debian-testing) g++ 4.0.1-2
I couldn't see the problem in the code?
There may not be a problem. gcc/g++ 4.0 is more eager (too eager, in my opinion) to warn about problems in code paths for which its flow analysis can't determine reachability.
In fact, if you look at the function it is warning about it has the following structure: static tick_type to_tick_count(...) { if(...) { return /...; } else{ return /... } } That's clearly a compiler bug that should be reported to the gcc folks. Jeff