|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2005-08-20 11:53:13
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net