Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200917 (experimental)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wfloat-conversion

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a -Wfloat-conversion
prog.cc:3:20: warning: integer overflow in expression of type 'int' results in '-294967296' [-Woverflow]
    3 | int i = 2000000000 + 2000000000;   // C4307
      |         ~~~~~~~~~~~^~~~~~~~~~~~
Exit Code:
0