Opened 9 years ago

Closed 9 years ago

#9340 closed Bugs (fixed)

compile error in make_shared_object.hpp with intel-linux-14.0.1

Reported by: viboes Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

The following error is reprted by the regression tests

Test output: lazy piranha fedora 19 64 C++11 - thread - sync_bounded_queue__single_thread_p / intel-linux-14.0.1
Rev 86557 / Mon, 04 Nov 2013 03:10:05 +0000
Compile [2013-11-04 10:17:41 UTC]: fail



    "/home/michael/programming/compilers/intel/composer_xe_2013_sp1.1.106/bin/intel64/icpc" -c -xc++ -std=c++11 -O0 -g -w2 -inline-level=0 -pthread -fPIC -wd1418 -wd193,304,383,444 -wd2415 -wd593,981 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED -DBOOST_THREAD_USE_DLL=1 -I".."   -c -o "/home/michael/boost_testing/results/boost/bin.v2/libs/thread/test/sync_bounded_queue__single_thread_p.test/intel-linux-14.0.1/debug/threading-multi/sync/mutual_exclusion/sync_bounded_queue/single_thread_pass.o" "../libs/thread/test/sync/mutual_exclusion/sync_bounded_queue/single_thread_pass.cpp"

../boost/smart_ptr/make_shared_object.hpp(216): error: expected a ")"
      ::new( pv ) T( boost::detail::sp_forward<Arg1>( arg1 ), boost::detail::sp_forward<Args>( args )... );
                                                            ^
          detected during:
            instantiation of "boost::detail::sp_if_not_array<T>::type boost::make_shared<T,Arg1,Args...>(Arg1 &&, Args &&...) [with T=int, Arg1=int, Args=<>]" at line 169 of "../boost/thread/sync_bounded_queue.hpp"
            instantiation of "boost::shared_ptr<ValueType> boost::sync_bounded_queue<ValueType>::ptr_pull(boost::unique_lock<boost::mutex> &) [with ValueType=int]" at line 299 of "../boost/thread/sync_bounded_queue.hpp"
            instantiation of "boost::shared_ptr<ValueType> boost::sync_bounded_queue<ValueType>::try_pull(boost::unique_lock<boost::mutex> &) [with ValueType=int]" at line 341 of "../boost/thread/sync_bounded_queue.hpp"
            instantiation of "boost::shared_ptr<ValueType> boost::sync_bounded_queue<ValueType>::try_pull() [with ValueType=int]" at line 63 of "../libs/thread/test/sync/mutual_exclusion/sync_bounded_queue/single_thread_pass.cpp"

compilation aborted for ../libs/thread/test/sync/mutual_exclusion/sync_bounded_queue/single_thread_pass.cpp (code 2)
            


Change History (2)

comment:1 by Peter Dimov, 9 years ago

Should be fixed in both develop and master, but this particular test doesn't seem to be alive, so no way to check.

comment:2 by Peter Dimov, 9 years ago

Resolution: fixed
Status: newclosed

Tester is up and running again, tests pass, closing as fixed.

Note: See TracTickets for help on using tickets.