[LLVMbugs] [Bug 2729] New: Overflow in constant expressions not caught
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Aug 28 07:22:19 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2729
Summary: Overflow in constant expressions not caught
Product: clang
Version: unspecified
Platform: PC
OS/Version: NetBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: neil at daikokuya.co.uk
CC: llvmbugs at cs.uiuc.edu
Constraint 6.6p4 in C99 requires constant expressions evaluate to values within
the range of their type. The following violation of that constraint is
accepted in pedantic-errors mode.
#include <limits.h>
enum { ns = -INT_MIN }; /* Overflow. */
--
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