[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Target Milestone|--- |6.0 Summary|Parameter deduction in |[6 Regression] Parameter |polymorphic lambdas |deduction in polymorphic ||lambdas --- Comment #1 from Jakub Jelinek --- At least using g++ 5.3 preprocessed sources, this is rejected since r229210.
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2016-02-17 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Ever confirmed|0 |1
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 --- Comment #2 from Jason Merrill --- Author: jason Date: Wed Feb 17 20:45:15 2016 New Revision: 233506 URL: https://gcc.gnu.org/viewcvs?rev=233506&root=gcc&view=rev Log: PR c++/69842 * method.c (forward_parm): Split out from... (add_one_base_init): ...here. * lambda.c (maybe_add_lambda_conv_op): Use it. Added: trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-conv1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/lambda.c trunk/gcc/cp/method.c
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #3 from Jason Merrill --- Fixed.
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 Philipp changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED |--- --- Comment #4 from Philipp --- Thank you for providing a fix for the test case so quickly. However, the issue resurfaces in a slightly more involved example using a variadic lambda, which I tested using gcc-6-20160221. Again, this code is accepted by gcc-5.3 and clang. #include #include template void sink(T &&) { static_assert(std::is_same::value,""); } int main() { auto const g([](auto &&... _var) { sink(std::forward(_var)...); }); g(0); }
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 --- Comment #5 from Jason Merrill --- Author: jason Date: Thu Feb 25 15:23:47 2016 New Revision: 233719 URL: https://gcc.gnu.org/viewcvs?rev=233719&root=gcc&view=rev Log: PR c++/69842 * method.c (forward_parm): Handle parameter packs. * lambda.c (maybe_add_lambda_conv_op): Use it for them. Added: trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/lambda.c trunk/gcc/cp/method.c
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 Jason Merrill changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED --- Comment #6 from Jason Merrill --- Fixed more. :)
[Bug c++/69842] [6 Regression] Parameter deduction in polymorphic lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69842 Jason Merrill changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED --- Comment #6 from Jason Merrill --- Fixed more. :)