parts/6.35.Recursion-GDL.md

6.35 Recursion [GDL]

6.35.1 Applicability to language

C++ permits recursion, hence is subject to the vulnerabilities documented in ISO/IEC 24772-1:2024, 6.35.

C++ allows recursive constexpr functions and consteval functions that are evaluated at compile time where such calls don’t contribute to the vulnerability.

6.35.2 Avoidance mechanisms for language users

To avoid the vulnerability or mitigate its ill effects, C++ software developers can apply the avoidance mechanisms of ISO/IEC 24772-1:2024, 6.35.5.