Subject: [Boost-bugs] [Boost C++ Libraries] #7814: Signal 6 coredump on lexical_cast with gcc option trapv
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-20 08:17:10
#7814: Signal 6 coredump on lexical_cast with gcc option trapv
-----------------------------------------------+----------------------------
Reporter: Bernd Raum <braum@â¦> | Owner: apolukhin
Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
Version: Boost 1.51.0 | Severity: Problem
Keywords: lexical_cast long trapv core dump |
-----------------------------------------------+----------------------------
When compiling with g++ and option -ftrapv (trap overflow errors), a
simple lexical_cast of a negative value causes a signal 6 dump:
boost::lexical_cast<long>(std::string("-3333"));
However, casting to double works fine.
We're currently using gcc 4.7.1 on a OpenSuse 12.1 platform.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7814> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC