There's no need to use the THROW macro for this type, as it's only defined for C++11 and up anyway.
* testsuite/util/testsuite_tr1.h (ThrowMoveConsClass): Use noexcept. Tested powerpc64le-linux, committed to trunk.
commit d2049661a973dcc3ea22113432ebc9de0f3dbe74 Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Nov 10 23:57:59 2017 +0000 Minor tweak to libstdc++ testsuite helper type * testsuite/util/testsuite_tr1.h (ThrowMoveConsClass): Use noexcept. diff --git a/libstdc++-v3/testsuite/util/testsuite_tr1.h b/libstdc++-v3/testsuite/util/testsuite_tr1.h index 377bb8636ed..b1f6c6d2350 100644 --- a/libstdc++-v3/testsuite/util/testsuite_tr1.h +++ b/libstdc++-v3/testsuite/util/testsuite_tr1.h @@ -162,7 +162,7 @@ namespace __gnu_test #if __cplusplus >= 201103L struct ThrowMoveConsClass { - ThrowMoveConsClass(ThrowMoveConsClass&&) THROW(int); + ThrowMoveConsClass(ThrowMoveConsClass&&) noexcept(false); }; struct NoexceptExplicitClass