Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181026 (experimental)

Options
Warnings
Boost 1.65.1
C++14
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/gcc-head/include -std=c++14
prog.cc:7:54: warning: integer overflow in expression of type 'int' results in '-2147483648' [-Woverflow]
    7 | compile_time_assert(twos_complement_math, INT_MIN == -INT_MIN);
      |                                                      ^
prog.cc:5:51: note: in definition of macro 'compile_time_assert'
    5 |  typedef int compile_time_assert_## name [1 - 2*!(expr)]
      |                                                   ^~~~
-2147483648
Exit Code:
0