Subject: [Boost-bugs] [Boost C++ Libraries] #4053: signals2 build failure with "error: dereferencing pointer '<anonymous>' does break strict-aliasing..."
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-30 07:33:06
#4053: signals2 build failure with "error: dereferencing pointer '<anonymous>'
does break strict-aliasing..."
-----------------------------------------+----------------------------------
Reporter: Joe Steeve <js@â¦> | Owner: fmhess
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: signals2
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
-----------------------------------------+----------------------------------
An application using signals2 (attached sample code), fails to build on
g++ (version 4.4.2-9, Debian squeeze) with the -O2 flag. It builds fine
under -O0. The build fails with:
{{{
joe_at_lark:~/sandbox/test$ g++ -o boost-sig boost-sig.cxx -I/opt/hdb/include
-Wall -Werror -O2
cc1plus: warnings being treated as errors
/opt/hdb/include/boost/optional/optional.hpp: In function âint main()â:
/opt/hdb/include/boost/optional/optional.hpp:315: error: dereferencing
pointer â<anonymous>â does break strict-aliasing rules
/opt/hdb/include/boost/optional/optional.hpp:422: note: initialized from
here
/opt/hdb/include/boost/optional/optional.hpp:262: error: dereferencing
pointer â<anonymous>â does break strict-aliasing rules
/opt/hdb/include/boost/optional/optional.hpp:262: note: initialized from
here
/opt/hdb/include/boost/optional/optional.hpp:268: error: dereferencing
pointer â<anonymous>â does break strict-aliasing rules
/opt/hdb/include/boost/optional/optional.hpp:268: note: initialized from
here
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4053> 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:02 UTC