[LLVMbugs] [Bug 6119] New: Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /data/home/rdivacky/ llvm/include/llvm/Support/Casting.h, line 199.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jan 23 09:56:13 PST 2010


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

           Summary: Assertion failed: (isa<X>(Val) && "cast<Ty>() argument
                    of incompatible type!"), function cast, file
                    /data/home/rdivacky/llvm/include/llvm/Support/Casting.h,
                    line 199.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4095)
 --> (http://llvm.org/bugs/attachment.cgi?id=4095)
test case

when compiling with clang the attached test file I am getting:

pes delta$ clang -O2 000.c
000.c:38:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
note_sets (rtx x, rtx set __attribute__ ((__unused__)), void *data)
^
000.c:40:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
000.c:42:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
scan_rtx_reg (rtx insn, rtx *loc, enum reg_class cl,
^
000.c:53:7: warning: non-void function 'scan_rtx_reg' should return a value
[-Wreturn-type]
      return;
      ^
000.c:68:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /data/home/rdivacky/llvm/include/llvm/Support/Casting.h,
line 199.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name 000.c
-mrelocation-model static -mdisable-fp-elim -munwind-tables -target-cpu x86-64
-resource-dir /usr/local/lib/clang/1.1 -O2 -fmessage-length 152 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-7kADvx.s -x c 000.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module '000.c'.
4.      Running pass 'Jump Threading' on function '@scan_rtx_reg'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

I am not sure about the bug component, feel free to recategorize


-- 
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