Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 0.0.1
#2
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
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
Rule 0.0.1 - by gdavis - 24-05-2024, 05:20 AM
RE: Rule 0.0.1 - by misra cpp - 07-06-2024, 02:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)