Compiler Warning (level 3) C4554
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Warning (level 3) C4554

Error Message

'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:
© 2016 Microsoft