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

SR:  8.9#2Checked automatically with code checker

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;
...
}