Move #include <complex.h> to complex-reduction.h, where
it is needed in MSVC builds.
Exclude code that requires a native 128-bit integer type from
compilation by MSVC.
Differential D99806
[flang] Address more MSVC build issues with reduction & numeric intrinsics klausler on Apr 2 2021, 11:10 AM. Authored by
Details Move #include <complex.h> to complex-reduction.h, where Exclude code that requires a native 128-bit integer type from
Diff Detail
Event TimelineComment Actions I get this error: D:\dev\llvm-project\flang\runtime\reduction.cpp(95): error C2059: syntax error: 'template' D:\dev\llvm-project\flang\runtime\reduction.cpp(404): note: see reference to function template instantiation 'signed char Fortran::runtime::GetTotalReduction<Fortran::common::TypeCategory::Integer,1,Fortran::runtime::IntegerSumAccumulator<int>>(const Fortran::runtime::Descriptor &,const char *,int,int,const Fortran::runtime::Descriptor *,ACCUMULATOR &&,const char *)' being compiled with [ ACCUMULATOR=Fortran::runtime::IntegerSumAccumulator<int> ] Could you fix it? Comment Actions Add attempted MSVC work-around to dodge error on "accumulator.template GetResult(...)" in function template. Comment Actions It works Remaining (after applying the patch) D:\dev\llvm-project\flang\runtime\reduction.cpp(161): error C2059: syntax error: 'template' D:\dev\llvm-project\flang\runtime\reduction.cpp(137): error C2059: syntax error: 'template' |