[LLVMbugs] [Bug 18229] New: llvm/tools/clang/lib/Sema/SemaTemplateDeduction.cpp:4649: maybe pointless assert ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 12 11:15:06 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18229

            Bug ID: 18229
           Summary: llvm/tools/clang/lib/Sema/SemaTemplateDeduction.cpp:46
                    49: maybe pointless assert ?
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Static analysis tool "cppcheck" said the following

[llvm/tools/clang/lib/Sema/SemaTemplateDeduction.cpp:4649] ->
[llvm/tools/clang/lib/Sema/SemaTemplat
eDeduction.cpp:4649]: (style) Same expression on both sides of '=='.

Source code is

  assert(PS1->getSpecializedTemplate() == PS1->getSpecializedTemplate() &&
         "the partial specializations being compared should specialize"
         " the same template.");

Maybe

  assert(PS1->getSpecializedTemplate() == PS2->getSpecializedTemplate() &&
         "the partial specializations being compared should specialize"
         " the same template.");

was intended ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131212/a7e8983f/attachment.html>


More information about the llvm-bugs mailing list