[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:52:29 PDT 2026


================
@@ -0,0 +1,25 @@
+!RUN: not %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s
----------------
eugeneepshteyn wrote:

This seems like a good test for test_errors.py:
```
!RUN: %python %S/test_errors.py %s %flang_fc1
...
!ERROR: 'f1' is already declared in this scoping unit
```

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


More information about the flang-commits mailing list