[Bug c++/85118] [6/7/8 Regression] Error when using std::bind with a generic lambda - "cannot bind 'const volatile char&' to an rvalue of type 'const volatile char'"
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 4 16:43:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85118
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Apr 4 16:42:44 2018
New Revision: 259090
URL: https://gcc.gnu.org/viewcvs?rev=259090&root=gcc&view=rev
Log:
PR c++/85118 - wrong error with generic lambda and std::bind.
* call.c (add_template_conv_candidate): Disable if there are any
call operators.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic17.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
More information about the Gcc-bugs
mailing list