public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36694] New: g++-4.2 rejects code, that other versions of gcc accept
@ 2008-07-02 10:58 tim at klingt dot org
2008-07-02 10:59 ` [Bug c++/36694] " tim at klingt dot org
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: tim at klingt dot org @ 2008-07-02 10:58 UTC (permalink / raw)
To: gcc-bugs
the attached preprocessed source does not compile with g++-4.2. it does compile
with g++-4.0, 4.1 and 4.3, though, so i don't know whether there is any
interest to work on a reduced test case and work on a bug fix ...
from my reading of the compiler error, it has to do with the compiler-generated
copy constructor ...
g++-4.2 -v:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2
--program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Debian 4.2.4-2+b1)
--
Summary: g++-4.2 rejects code, that other versions of gcc accept
Product: gcc
Version: 4.2.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tim at klingt dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36694
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36694] g++-4.2 rejects code, that other versions of gcc accept
2008-07-02 10:58 [Bug c++/36694] New: g++-4.2 rejects code, that other versions of gcc accept tim at klingt dot org
@ 2008-07-02 10:59 ` tim at klingt dot org
2008-07-02 16:13 ` rwild at gcc dot gnu dot org
2008-07-02 16:17 ` tim at klingt dot org
2 siblings, 0 replies; 6+ messages in thread
From: tim at klingt dot org @ 2008-07-02 10:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tim at klingt dot org 2008-07-02 10:58 -------
Created an attachment (id=15843)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15843&action=view)
compressed preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36694
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36694] g++-4.2 rejects code, that other versions of gcc accept
2008-07-02 10:58 [Bug c++/36694] New: g++-4.2 rejects code, that other versions of gcc accept tim at klingt dot org
2008-07-02 10:59 ` [Bug c++/36694] " tim at klingt dot org
@ 2008-07-02 16:13 ` rwild at gcc dot gnu dot org
2008-07-02 16:17 ` tim at klingt dot org
2 siblings, 0 replies; 6+ messages in thread
From: rwild at gcc dot gnu dot org @ 2008-07-02 16:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rwild at gcc dot gnu dot org 2008-07-02 16:12 -------
Please post the compile command and the error.
--
rwild at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rwild at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36694
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36694] g++-4.2 rejects code, that other versions of gcc accept
2008-07-02 10:58 [Bug c++/36694] New: g++-4.2 rejects code, that other versions of gcc accept tim at klingt dot org
2008-07-02 10:59 ` [Bug c++/36694] " tim at klingt dot org
2008-07-02 16:13 ` rwild at gcc dot gnu dot org
@ 2008-07-02 16:17 ` tim at klingt dot org
2 siblings, 0 replies; 6+ messages in thread
From: tim at klingt dot org @ 2008-07-02 16:17 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 8170 bytes --]
------- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36694] g++-4.2 rejects code, that other versions of gcc accept
[not found] <bug-36694-4@http.gcc.gnu.org/bugzilla/>
2010-10-20 21:55 ` redi at gcc dot gnu.org
@ 2011-03-29 17:25 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-29 17:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36694
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WONTFIX
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-29 17:17:57 UTC ---
GCC 4.2 is no longer maintained, please reopen if you can reproduce this with a
current release (4.3 or later)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36694] g++-4.2 rejects code, that other versions of gcc accept
[not found] <bug-36694-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-20 21:55 ` redi at gcc dot gnu.org
2011-03-29 17:25 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2010-10-20 21:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36694
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2010.10.20 21:55:26
Ever Confirmed|0 |1
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-20 21:55:26 UTC ---
I can't compile the preprocessed source with GCC 4.4, but that's pretty normal
for anything that includes boost because it uses so much conditional
compilation.
do you by any chance still have the origianl un-preprocessed source?
if not, I don't think this will be fixed, gcc 4.2 is no longer supported so if
it works with 4.3 (and I hope later versions) then it won't be fixed now
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-29 17:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-02 10:58 [Bug c++/36694] New: g++-4.2 rejects code, that other versions of gcc accept tim at klingt dot org
2008-07-02 10:59 ` [Bug c++/36694] " tim at klingt dot org
2008-07-02 16:13 ` rwild at gcc dot gnu dot org
2008-07-02 16:17 ` tim at klingt dot org
[not found] <bug-36694-4@http.gcc.gnu.org/bugzilla/>
2010-10-20 21:55 ` redi at gcc dot gnu.org
2011-03-29 17:25 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).