11-12-2007, 10:52 AM
This has been corrected in TC1.
In all cases, array indexing shall only be permitted on objects explicity declared tp be arrays. p[5] is not compliant as p is not explicity declared as an array.
Code:
uint8_t a[10];
uint8_t *p;
p = a;
p[5] = 0; /* NOT compliant */
In all cases, array indexing shall only be permitted on objects explicity declared tp be arrays. p[5] is not compliant as p is not explicity declared as an array.
Posted by and on behalf of the MISRA C Working Group