MISRA C:2012 Rule 1.4
Emergent language features shall not be used
Description
Rule Definition
Emergent language features shall not be used.
Rationale
Some new language features in the C11 Standard have undefined, unspecified or implementation-defined behavior. These features might also exhibit well-defined behavior that defies developer expectations. Though rule 1.3 and directive 1.1 prohibits undefined and implementation-defined behavior, to avoid well-defined behavior that defies expectations, some language features are summarily discouraged using rule 1.4.
Polyspace Implementation
The rule forbids use of all facilities in Annex K of the C11 Standard about
'Bound-checking interfaces', other than defining __STDC_WANT_LIB_EXT1__
to '0'.
Troubleshooting
If you expect a rule violation but do not see it, refer to Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Standard C Environment |
Category: Required |
AGC Category: Required |