================
@@ -178,3 +178,41 @@ auto b() {
 }
 } // namespace test6
 #endif
+
+#if __cplusplus >= 201402L
+// ensure lambda in non-dependent context generate same diagnostics as 
function[ template]
+namespace lambda_in_non_dependent_context {
+void f1() {
+  0, 0; // expected-warning {{left operand of comma operator has no effect}}
+  return;
+  0, 0;
----------------
zyn0217 wrote:

But with your patch, we do have after-return warnings surfaced for 
generic-lambdas.

This makes us inconsistent.

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

Reply via email to