Compiler Warning (level 3) C4554

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

'operator' : check operator precedence for possible error; use parentheses to clarify precedence

The following sample generates C4554:

// C4554.cpp  
// compile with: /W3 /WX  
int main() {  
   int a = 0, b = 0, c = 0;  
   a = a << b + c;   // C4554  
   // probably intended (a << b) + c,  
   // but will get a << (b + c)  
}  

Show: