![]() |
![]() |
0668 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.5.6 Type Definitions - Semantics | ||||||
An identifier which has been declared as a typedef, is being redeclared as a member of a struct or union without using an explicit type specifier. This is not permitted. For example:
/*PRQA S 781,783,2017,3205,3408,3602 ++*/
typedef int X;
extern void foo(void)
{
const int X = 0; /* Message 3334 */
struct ST
{
const X; /* Message 0668 */
int y;
};
}
MISRA-C:2004 Rules applicable to message 0668:
| Rule 1.2 (Required) | No reliance shall be placed on undefined or unspecified behaviour. |
See also:
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |