Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190228 (experimental)

Options
Warnings
Boost 1.69.0
C++17
no pedantic
Raw compiler options
-fsanitize=undefined

Author

anonymous

over 6 years ago

cnl.h

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17 -fsanitize=undefined
prog.cc: In function 'int main()':
prog.cc:7:10: warning: variable 'root_32' set but not used [-Wunused-but-set-variable]
    7 |     auto root_32 = root_2 * 4;
      |          ^~~~~~~
cnl.h:2903:51: runtime error: signed integer overflow: 1518500249 * 4 cannot be represented in type 'int'
Exit Code:
0