[flang-commits] [flang] [Flang][Semantics] Fix crash on invalid function result declaration (PR #194648)

via flang-commits flang-commits at lists.llvm.org
Tue Apr 28 20:51:47 PDT 2026


================
@@ -498,6 +496,8 @@ class FuncResultStack {
     // Result symbol
     Symbol *resultSymbol{nullptr};
     bool inFunctionStmt{false}; // true between Pre/Post of FunctionStmt
+    bool completingType{
+        false}; // re-entrancy guard for CompleteFunctionResultType
----------------
ShashwathiNavada wrote:

Done! Thank you!

https://github.com/llvm/llvm-project/pull/194648


More information about the flang-commits mailing list