This is reproduced on Visual Studio 2017 15.7.1.
- Download Angelscript from here: http://www.angelcode.com/angelscript/sdk/files/angelscript_2.32.0.zip
- Extract it to some folder, for me this is
D:\Dev\msvc_bug_test
- Open
sdk/angelscript/projects/msvc2015/angelscript.sln
in Visual Studio 2017 - It will ask to upgrade the project to SDK 10.0.17134.0 and toolset v141, so we do that
- We switch the build to Release and build the project
- Close the Visual Studio solution, and make a new solution/project, I'll call it
bugtest
- Switch to Release configuration
- Switch the runtime library to
/MT
in order to match Angelscript