Open llvmbot opened 10 years ago
Agreed that's unfortunate. However, I think our codebase uses bitfields quite a bit and I haven't noticed too many analyzer issues relating to them. I hope this can get fixed.
The analyzer pretty much doesn't handle bitfields at all. sigh
assigned to @tkremenek
Extended Description
Version 275 of the Mac OS X checker gives an incorrect "null dereference" error on the attached source. Just run "checker-275/scan-build c++ -c invalidpath.cpp" and look at the path it analyzed.
It took a path where retValue.Success was false, but then immediately went down a patch where it was true, which is impossible.
The really weird part is that if you swap the first 2 lines in the "foo" function, the error isn't reported.
Another weirdness is that retValue is initialized in such a way that retValue.Success is true so that the path where it assumed it was false is not possible either.