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

via flang-commits flang-commits at lists.llvm.org
Tue Sep 30 11:46:44 PDT 2025


Author: Peter Klausler
Date: 2025-09-30T11:46:41-07:00
New Revision: fad2a4c00db68ee10b506b05531cdc6458d9be37

URL: https://github.com/llvm/llvm-project/commit/fad2a4c00db68ee10b506b05531cdc6458d9be37
DIFF: https://github.com/llvm/llvm-project/commit/fad2a4c00db68ee10b506b05531cdc6458d9be37.diff

LOG: [flang] Add #include to fix MSVC build (#161415)

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

Added: 
    

Modified: 
    flang/lib/Evaluate/constant.cpp

Removed: 
    


################################################################################
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