TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

SR:  7.2#3Checked automatically with code checker

Synopsis:The value of an incomplete 'union' must not be used.
Language:C
Severity Level:1
Category:EXPRESSIONS


Description:
Attempting to use the value of an incomplete 'union' will result in undefined behaviour.

Example:

union common u;
...
int x = u;
...
is illegal because the union object 'u' is an incomplete type. Its value is therefore undefined.