[flang-commits] [flang] [flang] Add #include to fix MSVC build (PR #161415)
via flang-commits
flang-commits at lists.llvm.org
Tue Sep 30 11:27:27 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: Peter Klausler (klausler)
<details>
<summary>Changes</summary>
flang/lib/Evaluate/constant.cpp apparently needs this #include for MSVC builds but somehow not for others.
---
Full diff: https://github.com/llvm/llvm-project/pull/161415.diff
1 Files Affected:
- (modified) flang/lib/Evaluate/constant.cpp (+1)
``````````diff
diff --git a/flang/lib/Evaluate/constant.cpp b/flang/lib/Evaluate/constant.cpp
index 0fa397b9c356d..8923ab114c737 100644
--- a/flang/lib/Evaluate/constant.cpp
+++ b/flang/lib/Evaluate/constant.cpp
@@ -10,6 +10,7 @@
#include "flang/Evaluate/expression.h"
#include "flang/Evaluate/shape.h"
#include "flang/Evaluate/type.h"
+#include "flang/Semantics/scope.h"
#include <string>
namespace Fortran::evaluate {
``````````
</details>
https://github.com/llvm/llvm-project/pull/161415
More information about the flang-commits
mailing list