From: Tim Shen Date: Thu, 5 Jan 2017 03:18:17 +0000 (+0000) Subject: re PR libstdc++/78996 ( uses macro as name) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f9cf7ff836bbc7d4f68e47918c878983c08e386;p=gcc.git re PR libstdc++/78996 ( uses macro as name) 2017-01-05 Tim Shen PR libstdc++/78996 * include/std/variant (__gen_vtable_impl): rename __unused to __dimensions to avoid naming conflict. From-SVN: r244092 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 10f362bdd69..e51ab170750 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2017-01-05 Tim Shen + + PR libstdc++/78996 + * include/std/variant (__gen_vtable_impl): rename __unused to + __dimensions to avoid naming conflict. + 2017-01-04 Jonathan Wakely PR libstdc++/78968 diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index a4a1a1dd9e1..1803315dab6 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -604,17 +604,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template struct __gen_vtable_impl; - template struct __gen_vtable_impl< - _Multi_array<_Result_type (*)(_Visitor, _Variants...), __unused...>, + _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, tuple<_Variants...>, std::index_sequence<__indices...>> { using _Next = remove_reference_t::type>; using _Array_type = - _Multi_array<_Result_type (*)(_Visitor, _Variants...), __unused...>; + _Multi_array<_Result_type (*)(_Visitor, _Variants...), + __dimensions...>; static constexpr _Array_type _S_apply()