re PR c++/45080 ([C++0x] Rejects lambda to function pointer conversion inside functio...
authorJason Merrill <jason@redhat.com>
Wed, 25 May 2011 14:35:00 +0000 (10:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 May 2011 14:35:00 +0000 (10:35 -0400)
commitc844b3a0ed6ee62f4d41e3cab59e13edbd57c59c
tree8a09a1168935631826442b6ebbd84b4fcd37d508
parent7f0d79d514abbc8e7c8cc3fe1cfd70b5622958ef
re PR c++/45080 ([C++0x] Rejects lambda to function pointer conversion inside function template)

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.

From-SVN: r174203
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C [new file with mode: 0644]