[clang] [clang] Simplify the overload resolution logic for operator new and new[] (PR #211482)

Igor Kudrin via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 24 02:02:01 PDT 2026


================
@@ -57,3 +56,17 @@ void f() {
   TestType *t = new TestType;
   delete t;
 }
+
+#if !defined(INVALID_TYPE_IDENTITY_VERSION)
+struct Bad {};
+template <> struct std::type_identity<Bad>; // #incomplete_specialization
+
+// This is a pure implementation test to ensure correct caching behavior if
+// constructing the type_identity argument fails.
+void failedTypeIdentitySpecialization() {
----------------
igorkudrin wrote:

Oh, thanks, missed this comment.

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


More information about the cfe-commits mailing list