[clang] [clang] Add tests for CWG issues regarding completeness of types (PR #92113)
Mital Ashok via cfe-commits
cfe-commits at lists.llvm.org
Tue May 14 09:42:30 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list