re PR libstdc++/78996 (<variant> uses macro as name)
authorTim Shen <timshen@google.com>
Thu, 5 Jan 2017 03:18:17 +0000 (03:18 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 5 Jan 2017 03:18:17 +0000 (03:18 +0000)
2017-01-05  Tim Shen  <timshen@google.com>

PR libstdc++/78996
* include/std/variant (__gen_vtable_impl): rename __unused to
__dimensions to avoid naming conflict.

From-SVN: r244092

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant

index 10f362bdd69f79e4b817dc72a9900536b56e3656..e51ab1707508fb1c142b909a9af74452a34a5914 100644 (file)
@@ -1,3 +1,9 @@
+2017-01-05  Tim Shen  <timshen@google.com>
+
+       PR libstdc++/78996
+       * include/std/variant (__gen_vtable_impl): rename __unused to
+       __dimensions to avoid naming conflict.
+
 2017-01-04  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/78968
index a4a1a1dd9e1c54a0ecdafc923feaef2512170117..1803315dab633831686c0a9030f3d1b138607a27 100644 (file)
@@ -604,17 +604,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   template<typename _Array_type, typename _Variant_tuple, typename _Index_seq>
     struct __gen_vtable_impl;
 
-  template<typename _Result_type, typename _Visitor, size_t... __unused,
+  template<typename _Result_type, typename _Visitor, size_t... __dimensions,
           typename... _Variants, size_t... __indices>
     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<typename _Nth_type<sizeof...(__indices),
                             _Variants...>::type>;
       using _Array_type =
-         _Multi_array<_Result_type (*)(_Visitor, _Variants...), __unused...>;
+         _Multi_array<_Result_type (*)(_Visitor, _Variants...),
+                      __dimensions...>;
 
       static constexpr _Array_type
       _S_apply()