![]() |
![]() |
3313 | ![]() |
||||
![]() | |||||||
| Declarations and Definitions | REFERENCE - ISO:C90-6.5.2.3 Tags | ||||||
A struct or union tag is being used which has not been defined. This is an example of an incomplete type. The declaration of a struct or union is not allowed to have incomplete type; message 0620 will be generated - a constraint error. However it is possible to define or declare a pointer to an incomplete struct or union type, and this is sometimes useful. For example:
/*PRQA S 2017,3211,3408 ++*/
struct ST1 st1; /* Message 3313 and also 0620 - Constraint Error */
struct ST2 * pst2; /* Message 3313 */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |