I am trying to build onnxruntime (https://github.com/microsoft/onnxruntime) with Intel C++ compiler. I am getting an error (image attached) related to “static assertion” . I have also attached the source code causing it. I have found a stack overflow post which says this is bug for Intel compiler because MSVC can handle this. But the post is 3 years old. So I am expecting that there might be something I am missing. I am using “parallel studio xe 2019.4.064”. kindly look into this and let me know.
Stack overflow post - https://stackoverflow.com/questions/35764069/static-assert-and-intel-c-compiler
I am using VS 15 2017. Steps to reproduce the issue :-
git clone https://github.com/microsoft/onnxruntime.git
git submodule update –-init -–recursive
cmake -A x64 -G "Visual Studio 15 2017" -T "Intel C++ Compiler 19.0" ..\cmake
msbuild "onnxruntime.sln" /t:Rebuild /p:Configuration=Release /m
I think some template type is considered as POD while using MSVC but not ICC.