Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git f9e2ca2ab17197472bbde11fe6cc6115c2a5dc09) (https://github.com/llvm-mirror/llvm.git 655a52dced30974b023ff9b32a1b4bd61e78d107)

Options
Warnings
Boost 1.69.0
C++17
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-head/include -std=c++17
prog.cc:8:16: error: non-constant-expression cannot be narrowed from type 'int' to 'std::byte' in initializer list [-Wc++11-narrowing]
std::byte byte{i};
               ^
prog.cc:8:11: warning: unused variable 'byte' [-Wunused-variable]
std::byte byte{i};
          ^
1 warning and 1 error generated.
Exit Code:
1