Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 9087209314caafed4b232d4a66287f2d16054ad3)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wtautological-constant-out-of-range-compare

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Wtautological-constant-out-of-range-compare
prog.cc:9:10: warning: result of comparison of constant 3 with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
   if (b == 3)   // C4806
       ~ ^  ~
1 warning generated.
Exit Code:
0