[lexical_cast] crash using Intel 12.0 with optimizations enabled

Hi, I tracked down a crash to a call to boost::lexical_cast (Boost 1.46.1( when using the Intel 12.0 compiler for Windows (embedded into MSVC8) if optimizations are enabled. I would have expected the mini-program below to work smoothly, but instead the second catch-handler is entered (unknown exception). The offending compiler option is /O; in all cases except of /Od [all optimizations disabled] the exception is raised. May I strongly suppose this is either a boost or an Intel compiler issue, or did I misunderstand something ? Below are full command-line compiler options and teh program. Thanks and best, Thomas command line options: /c /O2 /Og /Qipo /I "C:\Libraries\Boost\boost_1_46_1" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /EHsc /MD /GS- /fp:strict /Za /Fo"ReleaseFinal/" /W3 /nologo /Wp64 /Zi /Qfp-speculation:strict /Quse-intel-optimized-headers /Qintel-extensions- mini-program: #include <iostream> #include <ostream> #include <string> #include "boost/lexical_cast.hpp" int main() { try { std::string X = boost::lexical_caststd::string(2 - 1); std::cout << X << std::endl; } catch (boost::bad_lexical_cast const &) { std::cout << "boost::lexical_cast exception occurred."; } catch (...) { std::cout << "An unknown exception occurred."; } }

On 17.03.2011 12:14, Thomas Mang wrote:
Hi,
I tracked down a crash to a call to boost::lexical_cast (Boost 1.46.1( when using the Intel 12.0 compiler for Windows (embedded into MSVC8) if optimizations are enabled. Which exact version is that? Versions prior to 12.0.2 have at least one bug I know about. (It only really concerns move-enabled classes, but you never know.)
Sebastian

On 17.03.2011 13:43, Sebastian Redl wrote:
On 17.03.2011 12:14, Thomas Mang wrote:
Hi,
I tracked down a crash to a call to boost::lexical_cast (Boost 1.46.1( when using the Intel 12.0 compiler for Windows (embedded into MSVC8) if optimizations are enabled. Which exact version is that? Versions prior to 12.0.2 have at least one bug I know about. (It only really concerns move-enabled classes, but you never know.)
Version 12.0.2.154 Thomas
Sebastian

On 3/17/2011 1:43 PM, Sebastian Redl wrote:
On 17.03.2011 12:14, Thomas Mang wrote:
Hi,
I tracked down a crash to a call to boost::lexical_cast (Boost 1.46.1( when using the Intel 12.0 compiler for Windows (embedded into MSVC8) if optimizations are enabled. Which exact version is that? Versions prior to 12.0.2 have at least one bug I know about. (It only really concerns move-enabled classes, but you never know.)
Version 12.0.2.154 Thomas
participants (3)
-
Sebastian Redl
-
Thomas Mang
-
Thomas Mang