libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR 98319]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 16 Dec 2020 13:37:17 +0000 (13:37 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 16 Dec 2020 13:37:17 +0000 (13:37 +0000)
commitab9bd93271061f436c10e35e261ecb73e2108ccc
tree6eda8ac1efa32a71701386abb149f9f133976e30
parent3cee0c6562e5d8df69a9d6ad613a6f3edcfcc797
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/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.
libstdc++-v3/include/experimental/random
libstdc++-v3/include/experimental/source_location
libstdc++-v3/include/experimental/utility
libstdc++-v3/testsuite/experimental/feat-lib-fund.cc