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 libstdc++/49058] [C++0x] Bind no-arguments functor failed using std::bind with -pedantic option.


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


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