diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-24 11:32:22 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-07-24 17:18:05 +0100 |
commit | 5fc9c40fea2481e56bf7bcc994cb40c71e28abb8 (patch) | |
tree | b9ba0c6e04fdb98b09153e250a2b3551e184d9e6 | |
parent | c9d61cff97b92c64e7f0717b3fb64fff4c870321 (diff) | |
download | gcc-5fc9c40fea2481e56bf7bcc994cb40c71e28abb8.zip gcc-5fc9c40fea2481e56bf7bcc994cb40c71e28abb8.tar.gz gcc-5fc9c40fea2481e56bf7bcc994cb40c71e28abb8.tar.bz2 |
libstdc++: Fix std::vector<bool> for -std=gnu++14 -fconcepts [PR116070]
This questionable combination of flags causes a number of errors. This
one in std::vector<bool> needs to be fixed in the gcc-13 branch so I'm
committing it separately to simplify backporting.
libstdc++-v3/ChangeLog:
PR libstdc++/116070
* include/bits/stl_bvector.h: Check feature test macro before
using is_default_constructible_v.
-rw-r--r-- | libstdc++-v3/include/bits/stl_bvector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index 245e1c3..c45b7ff 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -593,7 +593,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER _GLIBCXX20_CONSTEXPR _Bvector_impl() _GLIBCXX_NOEXCEPT_IF( is_nothrow_default_constructible<_Bit_alloc_type>::value) -#if __cpp_concepts +#if __cpp_concepts && __glibcxx_type_trait_variable_templates requires is_default_constructible_v<_Bit_alloc_type> #endif : _Bit_alloc_type() |