Synopsis: | An identifier declared as a typedef, must not be redeclared as a member of a struct or union without a type specifier. |
Language: | C |
Severity Level: | 4 |
Category: | DECLARATIONS |
Description: |
A typedef redeclared as some other type between its definition and its use within a structure or union will result in undefined behaviour.
Example: typedef int number; ... { int number; /* hides typedef name */ ... struct vector { const number; ... } object; ... } |