Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 344a3d0bc0fb0868b519c3342b4982d6121eece3)

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:13:12: warning: exception of type 'D' will be caught by earlier handler [-Wexceptions]
    catch( D ) {}  // warning C4286, D is derived from C
           ^
prog.cc:12:12: note: for type 'C'
    catch( C ) {}
           ^
1 warning generated.
libc++abi: terminating with uncaught exception of type char const*
Signal:
Aborted