This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/45080] [C++0x] Rejects lambda to function pointer conversion inside function template


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45080

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 14:35:03 UTC ---
Author: jason
Date: Wed May 25 14:35:00 2011
New Revision: 174203

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174203
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:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]