<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 --- - Crashes while compiling"
href="http://llvm.org/bugs/show_bug.cgi?id=15338">15338</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crashes while compiling
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tss@iki.fi
</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=10056" name="attach_10056" title="Crashing code">attachment 10056</a> <a href="attachment.cgi?id=10056&action=edit" title="Crashing code">[details]</a></span>
Crashing code
Compiling <a href="http://hg.dovecot.org/dovecot-2.2">http://hg.dovecot.org/dovecot-2.2</a> with SVN 2013-02-22 (rev 175960) :
clang: /home/tss/cvs/llvm/include/llvm/Support/Casting.h:231: typename
llvm::enable_if<llvm::is_same<Y, typename llvm::simplify_type<Y>::SimpleType>,
typename llvm::cast_retty<X, Y*>::ret_type>::type llvm::cast(Y*) [with X =
clang::VariableArrayType; Y = const clang::ArrayType; typename
llvm::enable_if<llvm::is_same<Y, typename llvm::simplify_type<Y>::SimpleType>,
typename llvm::cast_retty<X, Y*>::ret_type>::type = const
clang::VariableArrayType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"' failed.
#2 0x00007ffff6cb7621 in *__GI___assert_fail (
assertion=0x21528d8 "isa<X>(Val) && \"cast<Ty>() argument of incompatible
type!\"", file=<optimized out>, line=231,
function=0x225a780 "typename llvm::enable_if<llvm::is_same<Y, typename
llvm::simplify_type<Y>::SimpleType>, typename llvm::cast_retty<X,
Y*>::ret_type>::type llvm::cast(Y*) [with X = clang::VariableArrayType; Y =
const c"...)
at assert.c:81
#3 0x0000000000693c74 in ?? ()
#4 0x0000000000a13b4b in ?? ()
#5 0x0000000000a0bf38 in
getArrayIndexingBound(clang::CodeGen::CodeGenFunction&, clang::Expr const*,
clang::QualType&) ()
#6 0x0000000000a0c01c in
clang::CodeGen::CodeGenFunction::EmitBoundsCheck(clang::Expr const*,
clang::Expr const*, llvm::Value*, clang::QualType, bool) ()
#7 0x0000000000a10482 in
clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(clang::ArraySubscriptExpr
const*, bool) ()
#8 0x0000000000a11044 in
clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*,
clang::CodeGen::CodeGenFunction::TypeCheckKind) ()
#9 0x0000000000a3619d in ?? ()
#10 0x0000000000695f0b in ?? ()
#11 0x0000000000a3d1bb in ?? ()
#12 0x000000000069812e in ?? ()
#13 0x0000000000a3cd6b in ?? ()
#14 0x0000000000a3fe38 in ?? ()
#15 0x0000000000a3be13 in ?? ()
#16 0x0000000000a3f790 in
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) ()
#17 0x0000000000a0342a in
clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*) ()
#18 0x0000000000a9cc32 in
clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&) ()
#19 0x0000000000a9d79f in
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) ()
#20 0x0000000000968057 in
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
()
#21 0x000000000096b987 in
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) ()
#22 0x0000000000986ac0 in
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
()
#23 0x0000000000988bfb in
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) ()
#24 0x000000000098915a in
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) ()
#25 0x00000000009896c4 in ?? ()
#26 0x000000000095d59c in ?? ()
#27 0x000000000095c9f6 in ?? ()
#28 0x0000000000ab2415 in clang::ParseAST(clang::Sema&, bool, bool) ()
#29 0x000000000095b54e in clang::CodeGenAction::ExecuteAction() ()
#30 0x00000000007e84d9 in clang::FrontendAction::Execute() ()
#31 0x00000000007cae05 in
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ()
#32 0x00000000007b26e2 in
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) ()
#33 0x00000000007abb28 in cc1_main(char const**, char const**, char const*,
void*) ()
#34 0x000000000079af20 in main ()</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>