================
@@ -18,3 +18,15 @@ template<class T=decltype(nullptr)>
struct bar {};
// CHECK-MESSAGES: :[[@LINE-2]]:18: warning: use std::nullptr_t instead
// CHECK-FIXES: template<class T=std::nullptr_t>
+
+typedef decltype(nullptr) nullptr_t;
----------------
serge-sans-paille wrote:
Question: that's to support C23's `nullptr_t`, right?
https://github.com/llvm/llvm-project/pull/231637
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits