Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181020 (experimental)

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc: In destructor 'get::~get()':
prog.cc:4:43: warning: throw will always call terminate() [-Wterminate]
    4 |   ~get() { throw std::runtime_error("some"); }
      |                                           ^
prog.cc:4:43: note: in C++11 destructors default to noexcept
terminate called after throwing an instance of 'std::runtime_error'
  what():  some
Signal:
Aborted