This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58569] Compilation error when a class contains multiple std::function
- 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: Tue, 01 Oct 2013 08:04:46 +0000
- Subject: [Bug c++/58569] Compilation error when a class contains multiple std::function
- Auto-submitted: auto-generated
- References: <bug-58569-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58569
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This might be a front-end bug, I'm struggling to reduce it though.
If I produce prepreocessed code then clang++ compiles it fine.
Adding this to the global namespace (so that version gets found by unqualified
lookup instead of std::__callable_function) fixes the error:
template<typename _Functor>
inline _Functor&
__callable_functor(_Functor& __f)
{ return __f; }
So there seems to be some interaction with the std::__callable_function
overloads.