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.
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.