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

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Tue Apr 28 14:54:01 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
----------------
eugeneepshteyn wrote:

Oh, what Tarun said! (Sorry, hadn't noticed this comment before.)

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


More information about the flang-commits mailing list