<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang assertion"
href="http://llvm.org/bugs/show_bug.cgi?id=16827">16827</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang assertion
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>are-bugz@a1.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11001" name="attach_11001" title="temporaries created via clang++ -save-temps -c test.cpp, and input file">attachment 11001</a> <a href="attachment.cgi?id=11001&action=edit" title="temporaries created via clang++ -save-temps -c test.cpp, and input file">[details]</a></span>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>