[flang-commits] [flang] [flang] Catch calls to impure intrinsics from PURE subprograms (PR #160947)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Sun Sep 28 10:38:34 PDT 2025


================
@@ -1018,6 +1021,7 @@ END PROGRAM
 `HOSTNM(C, STATUS)` returns the host name of the system.
 
 This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.
+It is a pure procedure.
----------------
eugeneepshteyn wrote:

Well, technically the host name could change while the program is running, but perhaps we could assume that it would be extremely rare occurrence. 

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


More information about the flang-commits mailing list