diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index 5911c0390144..2bf520a3fd8c 100644 --- a/libcxx/include/type_traits +++ b/libcxx/include/type_traits @@ -1144,7 +1144,7 @@ private: static _Up __u(); #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES public: - typedef decltype(true ? __t() : __u()) type; + typedef typename remove_reference::type type; }; #else // _LIBCPP_HAS_NO_VARIADICS