We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f514bf commit c1c257dCopy full SHA for c1c257d
clang/test/SemaCXX/cxx2c-expansion-stmts.cpp
@@ -1080,3 +1080,12 @@ void dependent_incomplete_type(T& s) {
1080
}
1081
1082
template void dependent_incomplete_type<Incomplete>(Incomplete&); // expected-note {{in instantiation of function template specialization 'dependent_incomplete_type<Incomplete>' requested here}}
1083
+
1084
+template <typename T>
1085
+void lambda_template(T a) {
1086
+ template for (auto x : a) {} // expected-error {{cannot expand lambda closure type}}
1087
+}
1088
1089
+void lambda_template_call() {
1090
+ lambda_template([]{}); // expected-note {{in instantiation of function template specialization}}
1091
0 commit comments