public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) @ 2011-06-05 15:07 pluto at agmk dot net 2011-06-05 15:15 ` [Bug c++/49291] " redi at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: pluto at agmk dot net @ 2011-06-05 15:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49291 Summary: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: pluto@agmk.net Created attachment 24438 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24438 testcase compiling with gnu++0x works fine while gnu++98 ends with error: $ g++ 0.cpp -c -std=gnu++98 0.cpp: In member function ‘void A::release(B*)’: 0.cpp:20:20: error: no matching function for call to ‘std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F)’ struct F looks like a nice functor, so where is the problem? ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49291] error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) 2011-06-05 15:07 [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) pluto at agmk dot net @ 2011-06-05 15:15 ` redi at gcc dot gnu.org 2011-06-05 15:18 ` redi at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-05 15:15 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49291 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #24438|application/octet-stream |text/plain mime type| | --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-05 15:14:19 UTC --- Comment on attachment 24438 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24438 testcase you cannot instantiate templates with local classes in C++98 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49291] error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) 2011-06-05 15:07 [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) pluto at agmk dot net 2011-06-05 15:15 ` [Bug c++/49291] " redi at gcc dot gnu.org @ 2011-06-05 15:18 ` redi at gcc dot gnu.org 2011-06-05 15:26 ` pluto at agmk dot net 2011-06-05 17:32 ` redi at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-05 15:18 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49291 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-05 15:17:44 UTC --- basically the same issue as PR 47942 - thus invalid ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49291] error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) 2011-06-05 15:07 [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) pluto at agmk dot net 2011-06-05 15:15 ` [Bug c++/49291] " redi at gcc dot gnu.org 2011-06-05 15:18 ` redi at gcc dot gnu.org @ 2011-06-05 15:26 ` pluto at agmk dot net 2011-06-05 17:32 ` redi at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pluto at agmk dot net @ 2011-06-05 15:26 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49291 Pawel Sikora <pluto at agmk dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Pawel Sikora <pluto at agmk dot net> 2011-06-05 15:25:07 UTC --- hmm, so the visual 2005 accepts invalid code :) *** This bug has been marked as a duplicate of bug 47942 *** ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49291] error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) 2011-06-05 15:07 [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) pluto at agmk dot net ` (2 preceding siblings ...) 2011-06-05 15:26 ` pluto at agmk dot net @ 2011-06-05 17:32 ` redi at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-05 17:32 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49291 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-05 17:31:42 UTC --- yes, it's an MS extension enabled by default, you can disable it with /Za ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-05 17:32 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-06-05 15:07 [Bug c++/49291] New: error: no matching function for call to std::list<std::tr1::shared_ptr<B> >::remove_if(A::release(B*)::F) pluto at agmk dot net 2011-06-05 15:15 ` [Bug c++/49291] " redi at gcc dot gnu.org 2011-06-05 15:18 ` redi at gcc dot gnu.org 2011-06-05 15:26 ` pluto at agmk dot net 2011-06-05 17:32 ` 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).