Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Segmentation violation when using std::make_exception_ptr with string arguments

Johannes_I_
Beginner
577 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
KitturGanesh
Employee
577 Views

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

0 Kudos
Amanda_S_Intel
Employee
577 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).

0 Kudos
KitturGanesh
Employee
577 Views

Thanks Amanda, yes I could reproduce this as well.

0 Kudos
Amanda_S_Intel
Employee
577 Views

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

 

 

0 Kudos
Reply