[LLVMbugs] [Bug 11149] New: kernel compiling: size of array is negative
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 17 00:33:04 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11149
Summary: kernel compiling: size of array is negative
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: xuzhongxing at gmail.com
CC: llvmbugs at cs.uiuc.edu
When compiling Linux kernel 3.0, gcc accepts this code at -O2 level. But clang
rejects it. Gcc also rejects it at -O0.
void f(int offset) {
((void)sizeof(char[1 - 2*!!(!__builtin_constant_p(offset))]));
}
--
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