I have found more bugs in stringstream template class in Intel Parallel Studio 2015 XE Update 4 working under Visual Studio 2015 environment. Obtaining errors depends on whether the extension C++11 is used or not.
See at the program test2:
///////////Begin #include <sstream> #include <iostream> int main() { using namespace std; stringstream myStream; int n; myStream << "5\n"; myStream >> n; cout << n << endl; return 0; } ////////End
1) When the program is compiling without C++11 support, I get message on errors like this:
1>------ Rebuild All started: Project: test2, Configuration: Release Win32 ------ 1> test2.cpp 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits(1617): error : a nonstatic member reference must be relative to a specific object 1> -> decltype(_STD invoke(get(), _STD forward<_Types>(_Args)...)) 1> ^ 1> 1> compilation aborted for test2.cpp (code 2) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
All compiler option are:
/GS /W1 /Zc:wchar_t /Zi /O2 /Fd"Release\vc140.pdb" /Qipo /Zc:forScope /Gd /MD /Fa"Release\" /EHsc /nologo /Fo"Release\" /Qprof-dir "Release\" /Fp"Release\test2.pch"
2) When the program was compiling with C++11 support, I get message on errors like this:
1>------ Rebuild All started: Project: test2, Configuration: Release Win32 ------ 1> test2.cpp 1>": : error : ** The compiler has encountered an unexpected problem. 1> ** Segmentation violation signal raised. ** 1> Access violation or stack overflow. Please contact Intel Support for assistance. 1> 1> compilation aborted for test2.cpp (code 4) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
All compiler option are:
/GS /W1 /Zc:wchar_t /Zi /O2 /Fd"Release\vc140.pdb" /Qstd=c++11 /Qipo /Zc:forScope /Gd /MD /Fa"Release\" /EHsc /nologo /Fo"Release\" /Qprof-dir "Release\" /Fp"Release\test2.pch"
Could someone help me how I can work around this problem?
Best regards,
Jerzy