Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 606 Bytes

compiler-warning-level-3-c4554.md

File metadata and controls

24 lines (21 loc) · 606 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 3) C4554
Compiler Warning (level 3) C4554
11/04/2016
C4554
C4554
55bb68f0-2e80-4330-8921-51083c4f8d53

Compiler Warning (level 3) C4554

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