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++11
no pedantic

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++11
prog.cc:4:6: error: 'f1' is missing exception specification 'throw(X *)'
void f1()
     ^
          throw(X *)
prog.cc:2:6: note: previous declaration is here
void f1() throw (X*);
     ^
1 error generated.
Exit Code:
1