This is a draft version of a MISRA C++ 202x rule proposed for public review.
MISRA Rule 9.6.1
Category: Advisory
Analysis Type: Decidable,Single Translation Unit
Rationale
The use of goto
is usually regarded as bad programming practice as it can lead to code that is difficult to understand and analyse.
Restructuring code to avoid its use generally leads to code that has a lower level of complexity.
If this advice is not followed, M23_126: MISRA C++ 2023 Rule 9.6.3 ensure that the use of goto
does not result in code
that is considered to be unstructured.
Copyright The MISRA Consortium Limited © 2023