[LLVMbugs] [Bug 1677] New: Failed assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"'
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Sep 17 22:08:05 PDT 2007
http://llvm.org/bugs/show_bug.cgi?id=1677
Summary: Failed assertion `isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"'
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: astrange at ithinksw.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=1128)
--> (http://llvm.org/bugs/attachment.cgi?id=1128)
testcase (QT SMC decoder from ffmpeg)
> /usr/local/llvmgcc/bin/llvm-gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: ../llvm-gcc4-2.0.source/configure
--prefix=/Users/tonic/release/llvm-gcc/obj/../install --program-prefix=llvm-
--enable-llvm=/Users/tonic/release/llvm-2.0
--enable-languages=c,c++,objc,obj-c++ --with-arch=nocona --with-tune=generic
--with-gxx-include-dir=/usr/include/c++/4.0.0 --build=i686-apple-darwin8
--host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 LLVM (Apple Computer, Inc. build 2.0)
> /usr/local/llvmgcc/bin/llvm-gcc -O3 -emit-llvm -g -mdynamic-no-pic -march=nocona -mtune=nocona -c llvm-smc.i
/Users/tonic/release/llvm-2.0/include/llvm/Support/Casting.h:199: failed
assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"'
smc.c:490: internal compiler error: Abort trap
Changing optimization flags leads to one other error and a segfault:
> /usr/local/llvmgcc/bin/llvm-gcc -O1 -emit-llvm -g -mdynamic-no-pic -c llvm-smc.i
/Users/tonic/release/llvm-2.0/include/llvm/Type.h:295: failed assertion
`isAbstract() && "Cannot drop a reference to a non-abstract type!"'
> /usr/local/llvmgcc/bin/llvm-gcc -O2 -emit-llvm -g -mdynamic-no-pic -march=nocona -mtune=nocona -c llvm-smc.i
smc.c:490: internal compiler error: Segmentation fault
gcc compiles it with no warnings.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list