[LLVMbugs] [Bug 16827] New: clang assertion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 7 12:40:04 PDT 2013


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

            Bug ID: 16827
           Summary: clang assertion
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: are-bugz at a1.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11001
  --> http://llvm.org/bugs/attachment.cgi?id=11001&action=edit
temporaries created via clang++ -save-temps -c test.cpp, and input file

clang++ asserts on trying to compile the input listed below.
(Input has been manually reduced, and as such is not expected to be reasonable
C++)

Assertion failed: isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible
type!", file E:\...\Code\llvm\include\llvm/Support/Casting.h, line 250
clang++.exe: error: clang frontend command failed with exit code 3 (use -v to
see invocation)


functional header is from Windows / Visual Studio 10.0
SVN revision was r187356.

clang++ -std=c++11 test.cpp

______________________________
#include <functional>

class Test {
public:
    Test()
    {
        std::function <void(void)> x(&Test::Me);
    }
    void Me()
    {}
};
______________________________

I have attached the input file (test.cpp) as well as the preprocessed file
(test.ii).
Unfortunately delta/c-reduce and co where not too Windows friendly, hence I was
not very successful in reducing the .ii file

-- 
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/20130807/0d7a7e26/attachment.html>


More information about the llvm-bugs mailing list