This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36694] g++-4.2 rejects code, that other versions of gcc accept



------- Comment #3 from tim at klingt dot org  2008-07-02 16:15 -------
compiled via:
g++-4.2 server_dsp_thread_test.ii 

error message:
libs/boost/boost/concept_check.hpp: In instantiation of
â??boost::CopyConstructible<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>â??:
libs/boost/boost/concept_check.hpp:154:   instantiated from
â??boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>â??
libs/boost/boost/concept/detail/has_constraints.hpp:40:   instantiated from
â??const bool
boost::concept::not_satisfied<boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>::valueâ??
libs/boost/boost/concept/detail/has_constraints.hpp:43:   instantiated from
â??boost::concept::not_satisfied<boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>â??
libs/boost/boost/mpl/if.hpp:67:   instantiated from
â??boost::mpl::if_<boost::concept::not_satisfied<boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>,
boost::concept::constraint<boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>,
boost::concept::requirement<boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
> >â??
libs/boost/boost/concept/detail/general.hpp:19:   instantiated from
â??boost::concept::requirement_<void
(*)(boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>)>â??
libs/lockfree/fifo.hpp:60:   instantiated from
â??lockfree::detail::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??
libs/lockfree/fifo.hpp:272:   instantiated from
â??lockfree::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??
testsuite/../source/server/dsp_thread_queue.hpp:315:   instantiated from
â??nova::dsp_queue_interpreter<<unnamed>::dummy_runnable>â??
testsuite/../source/server/dsp_thread.hpp:87:   instantiated from
â??nova::dsp_threads<<unnamed>::dummy_runnable>â??
testsuite/server_dsp_thread_test.cpp:32:   instantiated from here
libs/boost/boost/concept_check.hpp:156: error:
â??boost::concept::requirement<Model>::failed [with Model =
boost::concept::usage_requirements<boost::CopyConstructible<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>]â?? is not a valid template argument for type â??void (*)()â?? because
function â??static void boost::concept::requirement<Model>::failed() [with
Model =
boost::concept::usage_requirements<boost::CopyConstructible<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>]â?? has not external linkage
libs/lockfree/fifo.hpp: In instantiation of
â??lockfree::detail::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??:
libs/lockfree/fifo.hpp:272:   instantiated from
â??lockfree::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??
testsuite/../source/server/dsp_thread_queue.hpp:315:   instantiated from
â??nova::dsp_queue_interpreter<<unnamed>::dummy_runnable>â??
testsuite/../source/server/dsp_thread.hpp:87:   instantiated from
â??nova::dsp_threads<<unnamed>::dummy_runnable>â??
testsuite/server_dsp_thread_test.cpp:32:   instantiated from here
libs/lockfree/fifo.hpp:60: error: â??boost::concept::requirement<Model>::failed
[with Model =
boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>]â??
is not a valid template argument for type â??void (*)()â?? because function
â??static void boost::concept::requirement<Model>::failed() [with Model =
boost::CopyConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>]â??
has not external linkage
libs/boost/boost/concept_check.hpp: In instantiation of
â??boost::DefaultConstructible<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>â??:
libs/boost/boost/concept_check.hpp:127:   instantiated from
â??boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>â??
libs/boost/boost/concept/detail/has_constraints.hpp:40:   instantiated from
â??const bool
boost::concept::not_satisfied<boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>::valueâ??
libs/boost/boost/concept/detail/has_constraints.hpp:43:   instantiated from
â??boost::concept::not_satisfied<boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>â??
libs/boost/boost/mpl/if.hpp:67:   instantiated from
â??boost::mpl::if_<boost::concept::not_satisfied<boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>,
boost::concept::constraint<boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>,
boost::concept::requirement<boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
> >â??
libs/boost/boost/concept/detail/general.hpp:19:   instantiated from
â??boost::concept::requirement_<void
(*)(boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>)>â??
libs/lockfree/fifo.hpp:61:   instantiated from
â??lockfree::detail::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??
libs/lockfree/fifo.hpp:272:   instantiated from
â??lockfree::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??
testsuite/../source/server/dsp_thread_queue.hpp:315:   instantiated from
â??nova::dsp_queue_interpreter<<unnamed>::dummy_runnable>â??
testsuite/../source/server/dsp_thread.hpp:87:   instantiated from
â??nova::dsp_threads<<unnamed>::dummy_runnable>â??
testsuite/server_dsp_thread_test.cpp:32:   instantiated from here
libs/boost/boost/concept_check.hpp:129: error:
â??boost::concept::requirement<Model>::failed [with Model =
boost::concept::usage_requirements<boost::DefaultConstructible<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>]â?? is not a valid template argument for type â??void (*)()â?? because
function â??static void boost::concept::requirement<Model>::failed() [with
Model =
boost::concept::usage_requirements<boost::DefaultConstructible<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>
>]â?? has not external linkage
libs/lockfree/fifo.hpp: In instantiation of
â??lockfree::detail::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??:
libs/lockfree/fifo.hpp:272:   instantiated from
â??lockfree::fifo<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*,
false, 1024u,
std::allocator<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*> >â??
testsuite/../source/server/dsp_thread_queue.hpp:315:   instantiated from
â??nova::dsp_queue_interpreter<<unnamed>::dummy_runnable>â??
testsuite/../source/server/dsp_thread.hpp:87:   instantiated from
â??nova::dsp_threads<<unnamed>::dummy_runnable>â??
testsuite/server_dsp_thread_test.cpp:32:   instantiated from here
libs/lockfree/fifo.hpp:61: error: â??boost::concept::requirement<Model>::failed
[with Model =
boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>]â??
is not a valid template argument for type â??void (*)()â?? because function
â??static void boost::concept::requirement<Model>::failed() [with Model =
boost::DefaultConstructibleConcept<nova::dsp_thread_queue_item<<unnamed>::dummy_runnable>*>]â??
has not external linkage


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36694


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]