[clang] [RFC] Initial implementation of P2719 (PR #113510)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 1 07:07:43 PDT 2024


================
@@ -2627,16 +2731,21 @@ static bool resolveAllocationOverload(
     // FIXME: Find out how this interacts with the std::align_val_t fallback
     // once MSVC implements it.
     if (R.getLookupName().getCXXOverloadedOperator() == OO_Array_New &&
-        S.Context.getLangOpts().MSVCCompat) {
+        S.Context.getLangOpts().MSVCCompat && Mode != ResolveMode::Typed) {
----------------
AaronBallman wrote:

Hmmmm it's a bit weird that we're changing MSVC compat mode when I don't think MSVC implements this functionality at all. I'm not opposed, but do we want to support this in MSVC compat mode?

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


More information about the cfe-commits mailing list