Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9341 closed Bugs (fixed)

compile error scoped_thread(move semantics) intel-linux-14.0.1

Reported by: viboes Owned by: viboes
Milestone: Boost 1.56.0 Component: thread
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

Test output: lazy piranha fedora 19 64 C++11 - thread - async__async_p / intel-linux-14.0.1
Rev 86557 / Mon, 04 Nov 2013 03:10:05 +0000
Compile [2013-11-04 10:17:36 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/async__async_p.test/intel-linux-14.0.1/debug/threading-multi/sync/futures/async/async_pass.o" "../libs/thread/test/sync/futures/async/async_pass.cpp"

../boost/thread/detail/move.hpp(299): error: function "boost::scoped_thread<CallableThread>::scoped_thread(const boost::scoped_thread<CallableThread> &) [with CallableThread=boost::join_if_joinable]" (declared at line 123 of "../boost/thread/scoped_thread.hpp") cannot be referenced -- it is a deleted function
            return boost::forward<T>(t);
                   ^
          detected during:
            instantiation of "boost::thread_detail::decay<T>::type boost::thread_detail::decay_copy(T &&) [with T=boost::scoped_thread<boost::join_if_joinable> &]" at line 265 of "../boost/thread/detail/thread.hpp"
            instantiation of "boost::thread::thread(F &&) [with F=boost::scoped_thread<boost::join_if_joinable> &]" at line 142 of "../boost/thread/scoped_thread.hpp"
            instantiation of "boost::scoped_thread<CallableThread>::scoped_thread(F &&, Args &&...) [with CallableThread=boost::join_if_joinable, F=boost::scoped_thread<boost::join_if_joinable> &, Args=<>, <unnamed>=boost::scoped_thread<boost::join_if_joinable>::dummy *]" at line 75 of "/usr/include/c++/4.8.2/bits/stl_construct.h"
            instantiation of "void std::_Construct(_T1 *, _Args &&...) [with _T1=boost::thread_pool::thread_t, _Args=<boost::scoped_thread<boost::join_if_joinable> &>]" at line 75 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h"
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=boost::scoped_thread<boost::join_if_joinable> *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 117 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h"
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=boost::scoped_thread<boost::join_if_joinable> *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 258 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h"
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=boost::scoped_thread<boost::join_if_joinable> *, _ForwardIterator=boost::thread_pool::thread_t *, _Tp=boost::thread_pool::thread_t]" at line 1142 of "/usr/include/c++/4.8.2/bits/stl_vector.h"
            instantiation of "std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}}, _ForwardIterator, _ForwardIterator) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator<boost::thread_pool::thread_t>, _ForwardIterator=boost::scoped_thread<boost::join_if_joinable> *]" at line 75 of "/usr/include/c++/4.8.2/bits/vector.tcc"
            instantiation of "void std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}}) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator<boost::thread_pool::thread_t>]" at line 122 of "../boost/thread/thread_pool.hpp"

../boost/thread/detail/thread.hpp(117): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
                  f();
                  ^
          detected during:
            instantiation of "void boost::detail::thread_data<F>::run() [with F=boost::scoped_thread<boost::join_if_joinable>]" at line 99
            implicit generation of "boost::detail::thread_data<F>::~thread_data() [with F=boost::scoped_thread<boost::join_if_joinable>]" at line 99
            instantiation of class "boost::detail::thread_data<F> [with F=boost::scoped_thread<boost::join_if_joinable>]" at line 99
            instantiation of "boost::detail::thread_data<F>::thread_data(F &&) [with F=boost::scoped_thread<boost::join_if_joinable>]" at line 24 of "../boost/thread/pthread/thread_heap_alloc.hpp"
            instantiation of "T *boost::detail::heap_new<T,A1>(A1 &&) [with T=boost::detail::thread_data<boost::scoped_thread<boost::join_if_joinable>>, A1=boost::scoped_thread<boost::join_if_joinable>]" at line 214
            [ 4 instantiation contexts not shown ]
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=boost::scoped_thread<boost::join_if_joinable> *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 117 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h"
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=boost::scoped_thread<boost::join_if_joinable> *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 258 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h"
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=boost::scoped_thread<boost::join_if_joinable> *, _ForwardIterator=boost::thread_pool::thread_t *, _Tp=boost::thread_pool::thread_t]" at line 1142 of "/usr/include/c++/4.8.2/bits/stl_vector.h"
            instantiation of "std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}}, _ForwardIterator, _ForwardIterator) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator<boost::thread_pool::thread_t>, _ForwardIterator=boost::scoped_thread<boost::join_if_joinable> *]" at line 75 of "/usr/include/c++/4.8.2/bits/vector.tcc"
            instantiation of "void std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}}) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator<boost::thread_pool::thread_t>]" at line 122 of "../boost/thread/thread_pool.hpp"

compilation aborted for ../libs/thread/test/sync/futures/async/async_pass.cpp (code 2)
            


Change History (3)

comment:1 by viboes, 9 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [86658]) Thread: merge dummy replacement to fix #9341.

comment:3 by viboes, 9 years ago

Milestone: To Be DeterminedBoost 1.56.0
Note: See TracTickets for help on using tickets.