================
@@ -67,6 +63,27 @@ void B<int>::g() requires true;
 
 } // namespace cwg2847
 
+namespace cwg2857 { // cwg2857: 2.7
+struct A {};
+struct B {
+  int operator+(A);
+};
+template <typename>
+struct D;
+
+void f(A* a, D<int>* d) {
+  *d + *a;
----------------
MitalAshok wrote:

This wouldn't be an ADL lookup since member functions can't be found via ADL. 
It looks like clang doesn't actually implement CWG2857: 
https://godbolt.org/z/5xdYj7a35 / https://godbolt.org/z/7oqfE5WKW

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

Reply via email to