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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 May 2011 21:40:54 +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 #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-22 21:23:12 UTC ---
It would be wrong though, consider:
struct F {
int operator();
void operator() const;
};
the decltype would detect the return type as 'int' but the function body would
return void, because _M_f is const