https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98319
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:c79725c7b21838e89105381ceff5af05b3609d21 commit r8-10849-gc79725c7b21838e89105381ceff5af05b3609d21 Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Dec 16 13:37:17 2020 +0000 libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR 98319] Currently the <experimental/random>, <experimental/source_location> and <experimental/utility> headers can be included in C++98 and C++11 modes, but gives errors. With this change they can be included, but define nothing. libstdc++-v3/ChangeLog: PR libstdc++/98319 * include/experimental/memory_resource: Add system_header pragma and only define contents for C++14 and later. * include/experimental/random: Only define contents for C++14 and later. * include/experimental/source_location: Likewise. * include/experimental/utility: Likewise. * testsuite/experimental/feat-lib-fund.cc: Include all LFTS headers that are present. Allow test to run for all modes. (cherry picked from commit ab9bd93271061f436c10e35e261ecb73e2108ccc)