diff --git a/libcxx/include/__type_traits/decay.h b/libcxx/include/__type_traits/decay.h --- a/libcxx/include/__type_traits/decay.h +++ b/libcxx/include/__type_traits/decay.h @@ -42,7 +42,7 @@ typedef _LIBCPP_NODEBUG typename conditional < is_array<_Up>::value, - __remove_extent_t<_Up>*, + typename add_pointer<__remove_extent_t<_Up>>::type, typename conditional < is_function<_Up>::value,