Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

According to section 6.2.7 of the C Standard [ISO/IEC 9899:2011],

All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined.

...

Tool

Version

Checker

Description

LDRA tool suite

Include Page
LDRA_V
LDRA_V

17 D
355 S
61 X

Fully implemented.

Compass/ROSE

 

 

Can detect some violations of this rule. However, it cannot flag violations involving universal names.

PRQA QA-C
Include Page
PRQA_V
PRQA_V

0777 (U)
0779 (U)

Partially implemented.

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

...

TR 24772"AJN Choice of filenames and other external identifiers" and "YOW Identifier name reuse"
MISRA-CRules 5.1 and 8.9

Bibliography

[ISO/IEC 9899:2011]Section 5.2.4.1, "Translation Limits"

 

...