libstdc++: Fix testsuite failures and warnings due to is_pod deprecation
authorJonathan Wakely <jwakely@redhat.com>
Thu, 9 Jan 2020 21:31:50 +0000 (21:31 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 9 Jan 2020 21:31:50 +0000 (21:31 +0000)
commitcaa39b2e842b03226551231688ef7190cbe44f89
treee09cfd08d9178aacba3f5861bba00cdfdcb1445c
parent1a6c5064f920adec998932f66955c74fbfd1fa09
libstdc++: Fix testsuite failures and warnings due to is_pod deprecation

With -std=gnu++2a and -Wsystem-headers the std::is_pod deprecation
causes some new diagnostics. This suppresses them.

* include/experimental/type_traits (experimental::is_pod_v): Disable
-Wdeprecated-declarations warnings around reference to std::is_pod.
* include/std/type_traits (is_pod_v): Likewise.
* testsuite/18_support/max_align_t/requirements/2.cc: Also check
is_standard_layout and is_trivial. Do not check is_pod for C++20.
* testsuite/20_util/is_pod/requirements/explicit_instantiation.cc:
Add -Wno-deprecated for C++20.
* testsuite/20_util/is_pod/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_pod/value.cc: Likewise.
* testsuite/experimental/type_traits/value.cc: Likewise.

From-SVN: r280066
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/type_traits
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/18_support/max_align_t/requirements/2.cc
libstdc++-v3/testsuite/20_util/is_pod/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/20_util/is_pod/requirements/typedefs.cc
libstdc++-v3/testsuite/20_util/is_pod/value.cc
libstdc++-v3/testsuite/experimental/type_traits/value.cc