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.
https://gist.github.com/tredpath/5f762151c1595246cd21c4503bded3ea