[previous] 0678 [next] [u] Array element is array of unknown size. Arrays cannot be constructed from incomplete types.
Implicitly undefined REFERENCE - ISO:C90-6.1.2.5 Types

This type describes an array which is being constructed from elements of incomplete array type. This is not allowed.

For example:


/*PRQA S 553,2017,3132,3210,3447,3684 ++*/

extern int abuf[3][];        /* Message 0678 - element type is incomplete array            */
extern int bbuf[][3];        /* OK - Array type is incomplete but element type is complete */


MISRA C:2012 Rules applicable to message 0678:

Rule-1.3  (Required) There shall be no occurrence of undefined or critical unspecified behaviour


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents