We are using QA-C for MISRA C++ conformance, but the tool spews out an error for code like this:
float a = foo();
float b = bar();
float c = a - b;
As far as I understand, this has no implicit type promotion as everything will happen in float
-sized chunks, but the tool tells me that the subtraction causes one. Is there any situation where there might be implicit promotion?