[flang-commits] [flang] [Flang] Give a more specific error message for expressions where an IO Unit is expected (PR #126970)

via flang-commits flang-commits at lists.llvm.org
Thu Feb 13 10:25:11 PST 2025


================
@@ -9,7 +9,9 @@
 #include "check-io.h"
 #include "definable.h"
 #include "flang/Common/format.h"
+#include "flang/Common/indirection.h"
----------------
jeanPerier wrote:

FYI, The [llvm policy about headers](https://llvm.org/docs/CodingStandards.html#include-as-little-as-possible) says that it is OK to include indirectly and I am fairly sure these two headers are included indirectly already via the tools.h. I am fine with the explicit include (so is the policy), but just know that you do not need to bother adding explicit includes.

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


More information about the flang-commits mailing list