Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

Intel C++ 17 vector destructor exception

Travis_R_
Beginner
150 Views

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

0 Kudos
3 Replies
Igor_V_Intel
Employee
150 Views

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.

Igor_V_Intel
Employee
150 Views

I escalated this to the developers (DPD200416165). Note that it happens with Od and MDd options.

Igor_V_Intel
Employee
150 Views

We expect this bug to be fixed in the upcoming 17.0 update package (the solution is implemented in scope of DPD200415213. 

Reply