http://llvm.org/bugs/show_bug.cgi?id=9284
Summary: -Warray-bounds too eager on variable-length arrays
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Input:
int f(bool b) {
float totals[3 + (b ? 0 : 1)];
if (!b)
totals[3] = 0;
}
Warns about `totals[3]` being out-of-bounds, which is wrong.
This breaks the webkit build.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs