hvdijk wrote:

How about this? For an incomplete class C, we used to generate the misleading 
"cannot delete pointer to incomplete type 'C'", now "cannot delete pointer to 
incomplete class 'C'", for a pointer to void, matching wording can just be 
"cannot delete pointer to 'void'". Does that look acceptable?

It's possible to merge err_delete_incomplete and err_delete_void_ptr_operand as 
you suggested but I think that requires a bit more complexity in 
err_delete_incomplete, or accepting misleading diagnostics.

https://github.com/llvm/llvm-project/pull/149406
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to