[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:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85118
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Apr 4 16:46:00 2018
New Revision: 259094
URL: https://gcc.gnu.org/viewcvs?rev=259094&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:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic17.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/call.c
More information about the Gcc-bugs
mailing list