This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49058] [C++0x] Bind no-arguments functor failed using std::bind with -pedantic option.
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2011 00:46:22 +0000
- Subject: [Bug libstdc++/49058] [C++0x] Bind no-arguments functor failed using std::bind with -pedantic option.
- Auto-submitted: auto-generated
- References: <bug-49058-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49058
--- Comment #19 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-05-23 00:09:00 UTC ---
Author: paolo
Date: Mon May 23 00:08:52 2011
New Revision: 174049
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174049
Log:
2011-05-22 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/bind/cv_quals_2.cc: New.
2011-05-22 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/49058
* include/std/functional (_Bind<_Functor(_Bound_args...)>::
operator()(_Args&&...)): Don't cv qualify _Functor directly
in the default template argument, SFINAE doesn't apply when
the functor has no arguments.
* testsuite/20_util/bind/49058_1.cc: New.
* testsuite/20_util/bind/49058_2.cc: Likewise.
Added:
branches/gcc-4_6-branch/libstdc++-v3/testsuite/20_util/bind/49058_1.cc
branches/gcc-4_6-branch/libstdc++-v3/testsuite/20_util/bind/49058_2.cc
branches/gcc-4_6-branch/libstdc++-v3/testsuite/20_util/bind/cv_quals_2.cc
Modified:
branches/gcc-4_6-branch/libstdc++-v3/ChangeLog
branches/gcc-4_6-branch/libstdc++-v3/include/std/functional