[LLVMbugs] [Bug 15338] New: Crashes while compiling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 23 01:44:26 PST 2013


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

            Bug ID: 15338
           Summary: Crashes while compiling
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tss at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10056
  --> http://llvm.org/bugs/attachment.cgi?id=10056&action=edit
Crashing code

Compiling http://hg.dovecot.org/dovecot-2.2 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 ()

-- 
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/20130223/fcbbf2b0/attachment.html>


More information about the llvm-bugs mailing list