PR libstdc++/95915
authorVille Voutilainen <ville.voutilainen@gmail.com>
Sun, 28 Jun 2020 21:36:38 +0000 (00:36 +0300)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Sun, 28 Jun 2020 21:36:38 +0000 (00:36 +0300)
commit24b54628cfa95194a8de4071c28cb56e6e81c08e
treedd028749f6d9fd43bbc7171330d4e415963387fa
parent75ff24e1920ea6b198350a2961e23175e6108e75
PR libstdc++/95915

PR libstdc++/95915
* include/std/type_traits (is_literal_type, is_literal_type_v):
Deprecate in C++17.
* include/std/variant (_Uninitialized):
Adjust the condition and the comment.
* testsuite/20_util/is_literal_type/deprecated-1z.cc: New.
* testsuite/20_util/is_literal_type/requirements/explicit_instantiation.cc:
Adjust.
* testsuite/20_util/is_literal_type/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_literal_type/value.cc: Likewise.
* testsuite/20_util/optional/constexpr/nullopt.cc:
Use __is_literal_type directly.
* testsuite/20_util/optional/nullopt.cc: Likewise.
* testsuite/20_util/variable_templates_for_traits.cc: Adjust.
* testsuite/20_util/variant/95915.cc: New.
* testsuite/20_util/variant/compile.cc: Add new test.
* testsuite/experimental/optional/constexpr/nullopt.cc:
Use __is_literal_type directly.
* testsuite/experimental/optional/nullopt.cc: Likewise.
* testsuite/experimental/type_traits/value.cc: Adjust.
* testsuite/util/testsuite_common_types.h:
Use __is_literal_type directly.
15 files changed:
libstdc++-v3/include/std/type_traits
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/is_literal_type/deprecated-1z.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/is_literal_type/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/20_util/is_literal_type/requirements/typedefs.cc
libstdc++-v3/testsuite/20_util/is_literal_type/value.cc
libstdc++-v3/testsuite/20_util/optional/constexpr/nullopt.cc
libstdc++-v3/testsuite/20_util/optional/nullopt.cc
libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc
libstdc++-v3/testsuite/20_util/variant/95915.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/variant/compile.cc
libstdc++-v3/testsuite/experimental/optional/constexpr/nullopt.cc
libstdc++-v3/testsuite/experimental/optional/nullopt.cc
libstdc++-v3/testsuite/experimental/type_traits/value.cc
libstdc++-v3/testsuite/util/testsuite_common_types.h