# PRINT deferred variable in FUNCTION

**URL:** <https://fortran-lang.discourse.group/t/print-deferred-variable-in-function/8747>\
**Category:** GNU\
**Created:** [October 23, 2024, 8:49pm UTC](https://fortran-lang.discourse.group/t/print-deferred-variable-in-function/8747 "2024-10-23T20:49:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![gWyche](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gWyche](https://fortran-lang.discourse.group/u/gWyche)\
**Post date:** [November 10, 2024, 4:17pm UTC](https://fortran-lang.discourse.group/t/print-deferred-variable-in-function/8747/10 "2024-11-10T16:17:24Z")

</div>

> [@Gfortran bug on a simple program?](https://fortran-lang.discourse.group/t/gfortran-bug-on-a-simple-program/7368/4):
>
> F2018 12.12p2

It took a while for that rule to sink in with appreciation of a reason for it. I do not think I will make that error again. Seems easy enough to refrain from citing a function as a I/O statement argument. I cannot trust myself to remember which functions are free of I/O.

---

_[View the full topic](https://fortran-lang.discourse.group/t/print-deferred-variable-in-function/8747)._
