Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 783ba64a8950768d412555abd52bbc65156d4fb5)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a
prog.cc:4:19: warning: extra tokens at end of #include directive [-Wextra-tokens]
#include <string> s     // C4067
                  ^
                  //
prog.cc:5:15: error: token is not a valid binary operator in a preprocessor subexpression
#if defined(X);         // C4067
    ~~~~~~~~~~^
prog.cc:9:7: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif;                 // C4067 only under /Za
      ^
      //
2 warnings and 1 error generated.
Exit Code:
1