Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 3) C4554
Collapse the table of content
Expand the table of content

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)
}

Community Additions

ADD
Show:
© 2015 Microsoft