25-05-2012, 08:59 AM
The example doesn't violate Rule 16.3 because the prototyped declaration of function a names its parameter.
However, the code doesn't seem to be valid anyway because:
However, the code doesn't seem to be valid anyway because:
- pt2Function is declared as an object, not a type in the original example, so cannot be used to declare the object a
- even if pt2Function were a type, a would be declared as an object and then redeclared as a function
Posted by and on behalf of the MISRA C Working Group