Using the Intel C++ 17.0 compiler in Visual Studio 2015 I'm getting an access violation exception in std::vector destructor (or its clear method) when running in debug mode. It only seems to occur when the vector has been iterated over and does not occur when compiled with either the Intel C++ 16.0 compiler or the MSVC 140 compiler.
Here is a Gist that will cause the exception to be raised. Unfortunately it only seems to raise the exception when compiled as x86 but the larger code base I originally came across this in also raises it when compiled as x64.
Thank you for reporting this. I reproduced it with VS2013 and Intel C++ compiler 17.0 Update 1. Note that there is no access violation with Visual C++ compiler. I will investigate and escalate to the developers.