[LLVMbugs] [Bug 2413] New: void* address cast error

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 4 06:57:52 PDT 2008


           Summary: void* address cast error
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: csaba.hruska at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1707)
 --> (http://llvm.org/bugs/attachment.cgi?id=1707)
buggy example file

buggy code:

void f()
        void *addr;
        addr = (void *)( ((long int)addr + 7L) );

ccc -c smemory.c
clang -emit-llvm-bc -x c -o smemory.o smemory.c
clang: /media/disk/download/llvm/svn/llvm/include/llvm/ADT/APSInt.h:159:
llvm::APSInt& llvm::APSInt::operator+=(const llvm::APSInt&): Assertion
`IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!"' failed.

with gcc it compiles fine.

system: 32 bit ubuntu (hardy) linux x86
clang svn: At revision 51936.

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