Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200914 (experimental)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wswitch-enum

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a -Wswitch-enum
prog.cc:4:19: warning: extra tokens at end of #include directive
    4 | #include <string> s     // C4067
      |                   ^
prog.cc:5:15: error: token ";" is not valid in preprocessor expressions
    5 | #if defined(X);         // C4067
      |               ^
prog.cc:9:7: warning: extra tokens at end of #endif directive [-Wendif-labels]
    9 | #endif;                 // C4067 only under /Za
      |       ^
Exit Code:
1