Subject: [Boost-bugs] [Boost C++ Libraries] #13551: m_storage may be used uninitialized in this function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-30 09:02:58
#13551: m_storage may be used uninitialized in this function
-------------------------------+-------------------------------
Reporter: lukasz.czajczyk@⦠| Owner: Fernando Cacciola
Type: Bugs | Status: new
Milestone: To Be Determined | Component: optional
Version: Boost 1.66.0 | Severity: Regression
Keywords: |
-------------------------------+-------------------------------
Hi, in 1.66 was the following feature introduced: On newer compilers
optional is now trivially-copyable for scalar Ts. This uses a different
storage (just T rather than aligned_storage). We require the compiler to
support defaulted functions.
Gcc 4.4.7 in C++98 mode is incorrectly recognizes because Boost tries to
use tc_optional_base however without C++11 defaulted functions are not
working. This is causing boost::optional<unsigned
char>::<anonymous>.boost::optional_detail::tc_optional_base<unsigned
char>::m_storageâ may be used uninitialized in this function warning.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13551> 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 : 2018-04-30 09:09:28 UTC