Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MISRA C++ 9.6.2
#2
You're right that the goto is enclosed by the IF, the labelled statement case 0 and the switch body, however L3 is only directly enclosed by the labelled statement case 1 - so is not allowed by this rule.

In addition, the label L3 is part of a switch label group, which is not allowed by 9.4.2 amplification item 3.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
MISRA C++ 9.6.2 - by gdavis - 06-07-2024, 02:20 AM
RE: MISRA C++ 9.6.2 - by misra cpp - 12-07-2024, 11:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)