Subject: Re: [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-23 06:20:21
#7814: Signal 6 coredump on lexical_cast with gcc option trapv
------------------------------------------------+---------------------------
Reporter: Bernd Raum <braum@â¦> | Owner: apolukhin
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: lexical_cast
Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords: lexical_cast long trapv core dump
------------------------------------------------+---------------------------
Comment (by alexey kutumov <alexey.kutumov@â¦>):
The problem is in numeric_limits::min, because negating of minimum value
of signed type is not representable as signed type (but representable as
unsigned), so this line is incorrect:
utype const comp_val =
static_cast<utype>(-(std::numeric_limits<Type>::min)());
Patch 7814.patch solves this problem
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7814#comment:2> 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