Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 539 Bytes

compiler-warning-level-2-c4756.md

File metadata and controls

24 lines (20 loc) · 539 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 2) C4756
Compiler Warning (level 2) C4756
11/04/2016
C4756
C4756
5a16df83-6b82-4619-83bd-319af4ef1d1d

Compiler Warning (level 2) C4756

overflow in constant arithmetic

The compiler generated an exception while doing constant arithmetic during compilation.

The following sample generates C4756:

// C4756.cpp
// compile with: /W2 /Od
int main()
{
   float f = 1e100+1e100;   // C4756
}