mrzechonek / tut-framework

C++ Template Unit Test Framework
http://mrzechonek.github.io/tut-framework
Other
50 stars 41 forks source link

Build fails with -Werror=terminate #10

Closed junghans closed 7 years ago

junghans commented 7 years ago
03:28:27 runner system command -> ['x86_64-pc-linux-gnu-g++', '-Werror=terminate', '-march=native', '-O2', '-pipe', '-O2', '-Wall', '-Wextra', '-Weffc++', '-ftemplate-depth-100', '-Idefault/include', '-I../include', '../selftest/teardown_ex.cpp', '-c', '-o', 'default/selftest/teardown_ex_2.o']
../selftest/teardown_ex.cpp: In destructor ‘virtual tut::teardown_ex::dummy::~dummy()’:
../selftest/teardown_ex.cpp:30:55: error: throw will always call terminate() [-Werror=terminate]
                 throw runtime_error("ex in destructor");
                                                       ^
../selftest/teardown_ex.cpp:30:55: note: in C++11 destructors default to noexcept

Details here: https://bugs.gentoo.org/show_bug.cgi?id=601962

junghans commented 7 years ago

This is version 2013-12-18 (a2de710fd4e4754ff35d76aed8145925268bb0b9).