Synopsis: | Identifiers shall not be redeclared within nested scopes. |
Language: | C |
Severity Level: | 2 |
Category: | SCOPE AND LINKAGE |
Description: |
Such practice is almost always done inadvertently and has dangerous implications for readability.
Example: int i; int f() { int i; /* WRONG - hides earlier declaration */ } |