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

            Bug ID: 16664
           Summary: static analyzer illegal instruction crash
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 10904
  --> http://llvm.org/bugs/attachment.cgi?id=10904&action=edit
backtrace

Overview:

The static analyzer gives me an illegal instruction crash when processing some
fairly simple C++ code.


Steps to reproduce:

Analyze this code:

-------------------------
#include <string>

bool IsFloating();
bool IsHidden( const std::string& inName );

static void    Foo( const char* inName,
                long inFlags )
{
    bool    isIgnored =
        IsFloating() ||
        IsFloating() ||
        (
            IsFloating()
            && ((inFlags & 4) != 0)
        )
        || IsHidden( inName )
        ;
}
-------------------------


Actual results:

Illegal instruction crash.  Backtrace attached.


Build date:

clang version 3.4 (trunk 186710)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to