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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs