-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"quality-of-implementation
Description
| Bugzilla Link | 2729 |
| Resolution | FIXED |
| Resolved on | Jan 16, 2014 14:53 |
| Version | unspecified |
| OS | NetBSD |
| Reporter | LLVM Bugzilla Contributor |
| CC | @chengniansun,@efriedma-quic,@zygoloid,@rjmccall,@RealLitb |
Extended Description
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. */
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"quality-of-implementation