Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7690 Discussions

Segmentation violation when using std::make_exception_ptr with string arguments

Johannes_I_
Beginner
272 Views

Hi,

the following code causes a segmentation violation in the compiler with Parallel Studio XE 2016 (2016.0.110) integrated into Visual Studio 2015.

#include <exception>
#include <string>

int main()
{
	std::string s;
	std::make_exception_ptr(s);
}

 

 

0 Kudos
4 Replies
Kittur_G_Intel
Employee
272 Views

Hi,
I tested out with VS 2013 and was successful and will let you know what I find with 2015 VS.
_Kittur 

Amanda_S_Intel
Employee
272 Views

Thanks for the test case. I reproduced this with Parallel Studio XE 2016 and Visual Studio 2015, and I escalated the issue to the development team (DPD200376379).

Kittur_G_Intel
Employee
272 Views

Thanks Amanda, yes I could reproduce this as well.

Amanda_S_Intel
Employee
272 Views

This issue is fixed in Parallel Studio 2016 update 1 (compiler version 16.0 update 1).

 

 

Reply