Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

over 3 years ago

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