07-06-2024, 02:41 PM
We agree with you, the condition *is* a constant expression and so the example is Non-Compliant.
We should change it to:
bool b = false;
if (b && f0()) ...
We'll incorporate this into the next release or any amendments
We should change it to:
bool b = false;
if (b && f0()) ...
We'll incorporate this into the next release or any amendments
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group