[flang-commits] [flang] [flang] Add #include to fix MSVC build (PR #161415)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Sep 30 11:26:52 PDT 2025


https://github.com/klausler created https://github.com/llvm/llvm-project/pull/161415

flang/lib/Evaluate/constant.cpp apparently needs this #include for MSVC builds but somehow not for others.

>From 9b29d06043add2ea575220e6033f12f076b606af Mon Sep 17 00:00:00 2001
From: Peter Klausler <pklausler at nvidia.com>
Date: Tue, 30 Sep 2025 11:24:05 -0700
Subject: [PATCH] [flang] Add #include to fix MSVC build

flang/lib/Evaluate/constant.cpp apparently needs this #include for
MSVC builds but somehow not for others.
---
 flang/lib/Evaluate/constant.cpp | 1 +
 1 file changed, 1 insertion(+)

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 {



More information about the flang-commits mailing list