public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/48313] New: std::bind with template function
@ 2011-03-28 11:58 joerg.richter@pdv-fs.de
  2011-03-28 12:31 ` [Bug libstdc++/48313] " redi at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: joerg.richter@pdv-fs.de @ 2011-03-28 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: std::bind with template function
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joerg.richter@pdv-fs.de


$ cat > t.cc << EOF
#include <functional>

template<class T> void func( T )
{}

int main( int, char** )
{
  std::bind( func<int>, 0 );
}
EOF

$ g++ t.cc -std=gnu++0x
t.cc: In function 'int main(int, char**)':
t.cc:8:27: error: cannot bind 'void(int)' lvalue to 'void (&&)(int)'
...

This is with GCC 4.6.0.  This works with GCC 4.5.2.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-03-31 12:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-28 11:58 [Bug libstdc++/48313] New: std::bind with template function joerg.richter@pdv-fs.de
2011-03-28 12:31 ` [Bug libstdc++/48313] " redi at gcc dot gnu.org
2011-03-28 12:40 ` redi at gcc dot gnu.org
2011-03-28 13:09 ` redi at gcc dot gnu.org
2011-03-28 15:15 ` redi at gcc dot gnu.org
2011-03-28 17:09 ` [Bug c++/48313] [C++0] " redi at gcc dot gnu.org
2011-03-28 20:34 ` [Bug c++/48313] [C++0x] " jason at gcc dot gnu.org
2011-03-29  4:06 ` jason at gcc dot gnu.org
2011-03-29 14:29 ` jason at gcc dot gnu.org
2011-03-29 14:35 ` jason at gcc dot gnu.org
2011-03-31 13:05 ` 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).