Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

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

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:6: error: ISO C++ forbids forward references to 'enum' types
enum Example;
     ^
prog.cc:5:6: error: enumeration previously declared with nonfixed underlying type
enum Example : unsigned { item2 = 0x80000000 }; // explicit type
     ^
prog.cc:4:6: note: previous declaration is here
enum Example;
     ^
2 errors generated.
Exit Code:
1