[LLVMbugs] [Bug 4665] New: no warning when assigning signed value to an unsigned variable
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Aug 1 14:34:00 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4665
Summary: no warning when assigning signed value to an unsigned
variable
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
witten /tmp# cat unsigned.c
void foo(void) {
unsigned int i = -10;
}
witten /tmp# clang -Wall -c unsigned.c
witten /tmp#
as you can see there's no warning when I try to assign -10 to an unsigned
variable
--
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