<html>
<head>
<base href="https://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 --- - Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),"
href="https://llvm.org/bugs/show_bug.cgi?id=23010">23010</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>amdmi3@amdmi3.ru
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Clang 3.6.0 which was recently imported into FreeBSD-HEAD source tree dies on
compiling Red Eclipse FPS game source code:
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file
/usr/src/lib/clang/libclangsema/../../../contrib/llvm/include/llvm/Support/Casting.h,
line 223.
Stack dump:
0. Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd11.0
-emit-obj -disable-free -main-file-name client.cpp -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu nocona -dwarf-column-info
-coverage-file
/home/amdmi3/projects/freebsd/batchports-mem/games/redeclipse/work/base-1.5.0/src/game/client.o
-resource-dir /usr/bin/../lib/clang/3.6.0 -D _REENTRANT -D _THREAD_SAFE -I . -I
shared -I engine -I game -I enet/include -I /usr/local/include -I
/usr/local/include/SDL -I /usr/local/include -internal-isystem
/usr/include/c++/v1 -O2 -Wall -fdeprecated-macro -fdebug-compilation-dir
/home/amdmi3/projects/freebsd/batchports-mem/games/redeclipse/work/base-1.5.0/src
-ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fno-rtti
-fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops
-vectorize-slp -o game/client.o -x c++ game/client.cpp
1. <eof> parser at end of file
2. game/game.h:470:10: instantiating function definition 'get'
c++: error: unable to execute command: Abort trap
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225
Target: x86_64-unknown-freebsd11.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.freebsd.org/submit/">https://bugs.freebsd.org/submit/</a> and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/client-10cab7.cpp
c++: note: diagnostic msg: /tmp/client-10cab7.sh
c++: note: diagnostic msg:
********************</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>