================
@@ -151,6 +151,12 @@ void instantiate(const int &param, const float &paramf, 
int &mut_param, float &m
         itf6(mut_paramf);
 }
 
+template<class T>
+void f(const T& t) {
+    const auto get = [&t] -> const T& { return t; };
+    return T{};
+}
----------------
PiotrZSL wrote:

Please add test:
```
const auto get = [](const T& t2) -> const T& { return t2; };
```
and verify that it's being still detected.

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

Reply via email to