[LLVMbugs] [Bug 5961] New: Assertion failed: (unsignedRange.NonNegative && " unsigned range includes negative?"), function CheckSignCompare, file SemaChecking.cpp, line 1882.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 6 13:34:59 PST 2010


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

           Summary: Assertion failed: (unsignedRange.NonNegative &&
                    "unsigned range includes negative?"), function
                    CheckSignCompare, file SemaChecking.cpp, line 1882.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: rjmccall at apple.com
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


pes delta$ cat 185.c
typedef unsigned long __uint64_t;
typedef __uint64_t __uintfptr_t;
typedef __uintptr_t uintptr_t;
extern uintptr_t *__start_set_pcpu;
typedef long db_expr_t;
db_value_of_name_pcpu(name, valuep)
{
 db_expr_t value;
 if (value < (uintptr_t)&__start_set_pcpu || value >=
(uintptr_t)&__stop_set_pcpu)


pes delta$ clang 185.c
185.c:3:9: error: unknown type name '__uintptr_t'; did you mean '__uintfptr_t'?
typedef __uintptr_t uintptr_t;
        ^~~~~~~~~~~
        __uintfptr_t
185.c:6:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
db_value_of_name_pcpu(name, valuep)
^
Assertion failed: (unsignedRange.NonNegative && "unsigned range includes
negative?"), function CheckSignCompare, file SemaChecking.cpp, line 1882.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name 185.c
-mrelocation-model static -mdisable-fp-elim -munwind-tables -target-cpu x86-64
-resource-dir /usr/local/lib/clang/1.1 -fmessage-length 152 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-DW7iWU.s -x c 185.c
1.      185.c:9:43: current parser token '||'
2.      185.c:7:1: parsing function body 'db_value_of_name_pcpu'
3.      185.c:7:1: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)


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