[clang] [Clang] Change how the argument of a delete expression is converted (PR #92814)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Tue May 21 07:53:23 PDT 2024


================
@@ -1230,11 +1230,11 @@ namespace cwg598 { // cwg598: yes
   int &t = h(N::i);
 }
 
-namespace cwg599 { // cwg599: partial
+namespace cwg599 { // cwg599: 19
   typedef int Fn();
   struct S { operator void*(); };
   struct T { operator Fn*(); };
-  struct U { operator int*(); operator void*(); }; // #cwg599-U
+  struct U { operator int*(); operator void*(); };
   struct V { operator int*(); operator Fn*(); };
   void f(void *p, void (*q)(), S s, T t, U u, V v) {
----------------
Endilll wrote:

Sorry, you added reference to pointer cases, which made me realize that pointers to references I've been asking for are prohibited by http://eel.is/c++draft/dcl.ref#5.sentence-1

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


More information about the cfe-commits mailing list