diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-07-06 16:19:23 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-07-06 17:12:29 +0100 |
commit | 0e5abeb0cb06f9798a559e1238839c5d6581657e (patch) | |
tree | d3c9f1586db854b2e4f11fa4bf6043f510de1a60 /libstdc++-v3/include/std | |
parent | 92414bb6b077642eefc24080637b6bc766499391 (diff) | |
download | gcc-0e5abeb0cb06f9798a559e1238839c5d6581657e.zip gcc-0e5abeb0cb06f9798a559e1238839c5d6581657e.tar.gz gcc-0e5abeb0cb06f9798a559e1238839c5d6581657e.tar.bz2 |
libstdc++: Fix -Wmismatched-tags warnings (PR 96063)
libstdc++-v3/ChangeLog:
* include/bits/fs_dir.h: Use consistent tag in class-head.
* include/bits/localefwd.h: Likwise.
* include/bits/regex.h: Likwise.
* include/bits/stl_map.h: Likwise.
* include/bits/stl_multimap.h: Likwise.
* include/bits/stl_multiset.h: Likwise.
* include/bits/stl_set.h: Likwise.
* include/std/complex: Likwise.
* include/std/functional: Likwise.
* include/std/future: Likwise.
* include/std/system_error: Likwise.
* include/std/thread: Likwise.
* include/std/tuple: Likwise.
* include/std/type_traits: Likwise.
* include/std/valarray: Likwise.
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r-- | libstdc++-v3/include/std/complex | 12 | ||||
-rw-r--r-- | libstdc++-v3/include/std/functional | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/std/future | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/std/system_error | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/std/thread | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/std/tuple | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/std/type_traits | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/std/valarray | 2 |
8 files changed, 22 insertions, 16 deletions
diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex index f2917b8..db147f4 100644 --- a/libstdc++-v3/include/std/complex +++ b/libstdc++-v3/include/std/complex @@ -124,8 +124,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @param Tp Type of real and imaginary values. */ template<typename _Tp> - struct complex + class complex { + public: /// Value typedef. typedef _Tp value_type; @@ -1079,8 +1080,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// 26.2.3 complex specializations /// complex<float> specialization template<> - struct complex<float> + class complex<float> { + public: typedef float value_type; typedef __complex__ float _ComplexT; @@ -1224,8 +1226,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// 26.2.3 complex specializations /// complex<double> specialization template<> - struct complex<double> + class complex<double> { + public: typedef double value_type; typedef __complex__ double _ComplexT; @@ -1369,8 +1372,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// 26.2.3 complex specializations /// complex<long double> specialization template<> - struct complex<long double> + class complex<long double> { + public: typedef long double value_type; typedef __complex__ long double _ComplexT; diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional index 2a9b2a0..124bdad 100644 --- a/libstdc++-v3/include/std/functional +++ b/libstdc++-v3/include/std/functional @@ -395,7 +395,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Type of the function object returned from bind(). template<typename _Signature> - struct _Bind; + class _Bind; template<typename _Functor, typename... _Bound_args> class _Bind<_Functor(_Bound_args...)> @@ -546,7 +546,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Type of the function object returned from bind<R>(). template<typename _Result, typename _Signature> - struct _Bind_result; + class _Bind_result; template<typename _Result, typename _Functor, typename... _Bound_args> class _Bind_result<_Result, _Functor(_Bound_args...)> diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future index 97506a2..6eef686 100644 --- a/libstdc++-v3/include/std/future +++ b/libstdc++-v3/include/std/future @@ -1048,7 +1048,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef __future_base::_State_base _State; typedef __future_base::_Result<_Res> _Res_type; typedef __future_base::_Ptr<_Res_type> _Ptr_type; - template<typename, typename> friend class _State::_Setter; + template<typename, typename> friend struct _State::_Setter; friend _State; shared_ptr<_State> _M_future; @@ -1159,7 +1159,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef __future_base::_State_base _State; typedef __future_base::_Result<_Res&> _Res_type; typedef __future_base::_Ptr<_Res_type> _Ptr_type; - template<typename, typename> friend class _State::_Setter; + template<typename, typename> friend struct _State::_Setter; friend _State; shared_ptr<_State> _M_future; @@ -1249,7 +1249,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef __future_base::_State_base _State; typedef __future_base::_Result<void> _Res_type; typedef __future_base::_Ptr<_Res_type> _Ptr_type; - template<typename, typename> friend class _State::_Setter; + template<typename, typename> friend struct _State::_Setter; friend _State; shared_ptr<_State> _M_future; diff --git a/libstdc++-v3/include/std/system_error b/libstdc++-v3/include/std/system_error index f92b4345..864b73e 100644 --- a/libstdc++-v3/include/std/system_error +++ b/libstdc++-v3/include/std/system_error @@ -177,8 +177,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * library might be represented by an HTTP response status code (e.g. 404) * and a custom category defined by the library. */ - struct error_code + class error_code { + public: error_code() noexcept : _M_value(0), _M_cat(&system_category()) { } @@ -275,8 +276,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * An `error_condition` represents something that the program can test for, * and subsequently take appropriate action. */ - struct error_condition + class error_condition { + public: error_condition() noexcept : _M_value(0), _M_cat(&generic_category()) { } diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index e1bba0c..0445ab1 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -97,7 +97,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION private: friend class thread; - friend class hash<id>; + friend struct hash<id>; friend bool operator==(id __x, id __y) noexcept; diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple index 726ad0a..0dc1176 100644 --- a/libstdc++-v3/include/std/tuple +++ b/libstdc++-v3/include/std/tuple @@ -192,7 +192,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : public _Tuple_impl<_Idx + 1, _Tail...>, private _Head_base<_Idx, _Head> { - template<size_t, typename...> friend class _Tuple_impl; + template<size_t, typename...> friend struct _Tuple_impl; typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; typedef _Head_base<_Idx, _Head> _Base; @@ -341,7 +341,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION struct _Tuple_impl<_Idx, _Head> : private _Head_base<_Idx, _Head> { - template<size_t, typename...> friend class _Tuple_impl; + template<size_t, typename...> friend struct _Tuple_impl; typedef _Head_base<_Idx, _Head> _Base; diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 9cd3a2d..426febc 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -2343,7 +2343,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// result_of template<typename _Signature> - class result_of; + struct result_of; // Sfinae-friendly result_of implementation: diff --git a/libstdc++-v3/include/std/valarray b/libstdc++-v3/include/std/valarray index be2e70d..9981b60 100644 --- a/libstdc++-v3/include/std/valarray +++ b/libstdc++-v3/include/std/valarray @@ -571,7 +571,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION size_t _M_size; _Tp* __restrict__ _M_data; - friend class _Array<_Tp>; + friend struct _Array<_Tp>; }; #if __cpp_deduction_guides >= 201606 |