10-04-2019, 01:44 PM
2-10-2 is not purely about block scopes, so your examples A, B, C and D are violations of this rule, but E isn’t as a derived class is not an inner scope with respect to the base.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group