================
@@ -380,3 +380,12 @@ void externFunctions2() {
   void callNonblockingExtern(MPI_Request *req);
   callNonblockingExtern(&req);
 }
+
+bool contains();
+void GH64647() {
+  if (contains()) {
+    MPI_Request request_item;
+    MPI_Wait(&request_item, MPI_STATUS_IGNORE); // expected-warning {{Request 
'request_item' has no matching nonblocking call.}}
+       }
+       GH64647();
----------------
steakhal wrote:

```suggestion
  }
  GH64647(); // recursing back!
```

BTW this self-recursion without any limit is pretty unrealistic - albeit this 
particular case likely has the tail-recursion optimization so at least it's not 
going to run out of stack space as it runs - it just never terminates. 
Restructuring it to be more plausible likely avoidts future warnings raising 
this issue.

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

Reply via email to