================
@@ -335,6 +335,16 @@ ExprDependence clang::computeDependence(CXXThisExpr *E) {
   return D;
 }
 
+ExprDependence clang::computeDependence(CThisExpr *E) {
+  // The implicit reference is type-dependent if the enclosing record type
+  // is dependent. This primarily matters when the C struct is utilized 
+  // within a C++ template context. 
+  // Unlike CXXThisExpr, CThisExpr cannot be captured by lambdas or 
+  // explicitly object parameters, so we only need to forward the implied 
+  // type's dependence.
----------------
Caryoake wrote:

Got it yep

https://github.com/llvm/llvm-project/pull/199241
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to