[clang] [Clang] [C++26] Implement P2573R2: `= delete("should have a reason");` (PR #86526)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 10:20:56 PDT 2024


================
@@ -8857,7 +8856,7 @@ def err_nontemporal_builtin_must_be_pointer_intfltptr_or_vector : Error<
   "address argument to nontemporal builtin must be a pointer to integer, float, "
   "pointer, or a vector of such types (%0 invalid)">;
 
-def err_deleted_function_use : Error<"attempt to use a deleted function">;
+def err_deleted_function_use : Error<"attempt to use a deleted function%select{|: %1}0">;
----------------
AaronBallman wrote:

I agree with Erich, it makes sense to put this information with the primary diagnostic rather than in a note.

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


More information about the cfe-commits mailing list