Language
C++
Compiler
clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git a9e6c15034fb52f70e6d239a73bacf8d49c1d048) (https://github.com/llvm-mirror/llvm.git 40c46461742987f464fb85d52cbf04aab5b1121b)
Options
Optimization
Boost 1.68.0
C++2a(GNU)
no pedantic
$ clang++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.68.0/clang-head/include -std=gnu++2a before throw_after_return()
returning A
logger(A)
throwing X from destructor
caught X
--------
before return_after_return()
returning A
logger(A)
throwing X from destructor
caught X, returning B
logger(B)
after return_after_return()
~logger(B)
Exit Code:
0