[Bug c++/45080] [C++0x] Rejects lambda to function pointer conversion inside function template
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 25 15:27:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45080
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 15:26:29 UTC ---
Author: jason
Date: Wed May 25 15:26:25 2011
New Revision: 174208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174208
Log:
PR c++/45080
* pt.c (instantiate_class_template_1): Call maybe_add_lambda_conv_op.
* semantics.c (lambda_function): Check COMPLETE_OR_OPEN_TYPE_P.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/pt.c
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list