News for hackers. Stuff that matters.
Re:A nice, little known C feature: Static array indices in p... by quasive on Monday February 18, 2013 @03:15PM (#5240353)
This "shall" is not listed under "Constraints", so violation of it is undefined behavior and does not require a diagnostic. See 4 (Conformance): If a ‘‘shall’’ or ‘‘shall not’’ requirement that appears outside of a constraint is violated, the behavior is undefined.

This is an area where a compiler can (sometimes) see violations, though, so I think gcc should diagnose when possible, in the same vein as format specifier mismatches in printf().

There are no comments on this comment yet.