[libcxx-commits] [libcxx] [libc++] Don't use incomplete remove_pointer builtin for GCC (PR #91838)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 11 02:08:36 PDT 2024


================
@@ -24,7 +24,7 @@ struct remove_pointer {
 };
 
 template <class _Tp>
-using __remove_pointer_t = __remove_pointer(_Tp);
+using __remove_pointer_t = typename remove_pointer<_Tp>::type;
----------------
frederick-vs-ja wrote:

Did you find that GCC's `__remove_pointer` was fine when nested within a class template but problematic when used directly in an alias template?

Can we just change the condition of this branch to exclude GCC?

https://github.com/llvm/llvm-project/pull/91838


More information about the libcxx-commits mailing list