[Boost-bugs] [Boost C++ Libraries] #9161: two definitions of future_object_base in v1.53 and 1.54

Subject: [Boost-bugs] [Boost C++ Libraries] #9161: two definitions of future_object_base in v1.53 and 1.54
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-25 04:20:21


#9161: two definitions of future_object_base in v1.53 and 1.54
--------------------------------+----------------------------------
 Reporter: jennifer.l.jiang@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
 Severity: Problem | Keywords: BOOST_THREAD_VERSION
--------------------------------+----------------------------------
 Our testing with icpc on Linux found one strange issue related to
 â€œBOOST_THREAD_VERSION”.

 When building the boost thread library (libboost_thread.a), we found that
 â€œBOOST_THREAD_VERSION” is defined as “2”, but when the test case (i.e
 set_exception_at_thread_exit_pass.cpp) is built, the
 â€œBOOST_THREAD_VERSION” is “4”. So when “-ipo” Is used, icpc gives link
 errors because two definitions of the same class “struct
 future_object_base : enable_shared_from_this<future_object_base>” is used.

 But Gcc seems working fine with its whole program optimization.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9161>
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:14 UTC