================
@@ -372,3 +372,17 @@ void testGenericLambdaIssue177354() {
T x(*p);
};
}
+
+template <typename T>
+struct DependentCtor {
+ DependentCtor(int *p);
+};
+
+void dependentInitInGenericLambda() {
+ auto lambda = []<typename T>(int *p) {
+ DependentCtor<T> s(p);
+ };
+
+ int x = 0;
+ lambda.operator()<int>(&x);
----------------
zeyi2 wrote:
Nit: is this really needed?
https://clang-tidy.godbolt.org/z/8j35MWa8b
https://github.com/llvm/llvm-project/pull/186953
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits