This is debugging code that wasn't meant to be left in, and prevents building the filesystem TS library with -fno-exceptions. It was already removed from trunk months aog, this removes it from the branch too.
* src/filesystem/std-path.cc (path::remove_filename()): Remove debug check that prevents building with -fno-exceptions. Thanks to Uri Simchoni for reporting it. Tested x86_64-linux, committed to gcc-8-branch.
commit 9e22a0bb23787e74a67730a8f99deb75aa5e6c94 Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu Jan 10 09:43:38 2019 +0000 Remove bare 'throw' expression that breaks -fno-exceptions build This is debugging code that wasn't meant to be left in, and prevents building the filesystem TS library with -fno-exceptions. It was already removed from trunk months aog, this removes it from the branch too. * src/filesystem/std-path.cc (path::remove_filename()): Remove debug check that prevents building with -fno-exceptions. diff --git a/libstdc++-v3/src/filesystem/std-path.cc b/libstdc++-v3/src/filesystem/std-path.cc index d5016e06138..aa24e1fb288 100644 --- a/libstdc++-v3/src/filesystem/std-path.cc +++ b/libstdc++-v3/src/filesystem/std-path.cc @@ -63,8 +63,6 @@ path::remove_filename() } else if (_M_type == _Type::_Filename) clear(); - if (!empty() && _M_pathname.back() != '/') - throw 1; return *this; }