[cfe-dev] Small code problems in SemaTemplateDeduction.cpp and ASTContext.cpp
Douglas Gregor
dgregor at apple.com
Mon Aug 29 17:39:04 PDT 2011
On Aug 4, 2011, at 12:10 PM, Lockal S wrote:
> Few days ago Andrey Karpov analyzed Clang and LLVM code using statical analisys
> tool for Visual Studio his company developed. He wrote a big article in russian
> on http://habrahabr.ru/blogs/compilers/125626/ for advertising purposes.
>
> I have wrote to llvmdev list about llvm-related bugs.
> However few problems are Clang-related:
>
> clang/lib/Sema/SemaTemplateDeduction.cpp:3239
> if ((P->isPointerType() && A->isPointerType()) ||
> (P->isMemberPointerType() && P->isMemberPointerType()))
>
> Note the identical sub-expressions 'P->isMemberPointerType()' to the left and
> to the right of the '&&' operator. Probably the second one should be
> A->isMemberPointerType().
Good find, thanks!
- Doug
More information about the cfe-dev
mailing list