[llvm-bugs] [Bug 34305] New: apiModeling.google.GTest check has assertion 'op == BO_Add' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 23 16:05:27 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34305

            Bug ID: 34305
           Summary: apiModeling.google.GTest check has assertion 'op ==
                    BO_Add' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: chh at google.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19037
  --> https://bugs.llvm.org/attachment.cgi?id=19037&action=edit
test script and preprocessed file

The attached gtest.zip contains a test case that
shows an assertion failure triggered by the
analyzer apiModeling.google.GTest check.

To reproduce the problem:
(1) build clang-tidy with assertion check.
(2) run the run.sh script.


The assertion failure is:

clang-tidy: .../llvm/tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp:406:
clang::ento::SVal
clang::ento::SValBuilder::evalBinOp(clang::ento::ProgramStateRef,
clang::BinaryOperator::Opcode, clang::ento::SVal, clang::ento::SVal,
clang::QualType): Assertion `op == BO_Add' failed.

-- 
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/20170823/e6043d0a/attachment.html>


More information about the llvm-bugs mailing list