Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 2c391a5a14aeb34e970aba85c5aa540656fe47ca)

Options
Warnings
Boost 1.73.0
C++11
no pedantic

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++11
prog.cc:8:14: error: case value evaluates to 4294967295, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
        case 4294967295:   // OK
             ^
prog.cc:10:14: error: case value evaluates to 4294967296, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
        case 4294967296:   // C4178
             ^
2 errors generated.
Exit Code:
1