re PR c++/58597 (ICE with lambda in default argument of template function)
authorJason Merrill <jason@redhat.com>
Tue, 27 Jan 2015 21:40:45 +0000 (16:40 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Jan 2015 21:40:45 +0000 (16:40 -0500)
commit2cc7f90b6e4906efd9cd909d7182630dbf9e819b
tree5a56e487c0acb4630d95d68c8581667225c6c537
parent53c04ec92a37b35a7f37e00bd5a4b611cf470e3c
re PR c++/58597 (ICE with lambda in default argument of template function)

PR c++/58597
* lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
current_function_decl.

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