https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78882
--- Comment #1 from lcid-fire at gmx dot net --- Flags are -std=c++14 and the actual problem seems to be templates combined with auto: #include <functional> struct In { }; template <typename T> auto anonymousWrap() { return T(); }; int main() { using namespace std::placeholders; std::bind(anonymousWrap<In>); return 0; }