re PR c++/89387 (ICE in maybe_generic_this_capture at gcc/cp/lambda.c:945 since r268851)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Feb 2019 08:43:23 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Feb 2019 08:43:23 +0000 (09:43 +0100)
commitd5fe39d47c336e55acb80aa08e24e307e9262a83
tree57dc50171b731116b5bbf9cd70fa03c53115fd3b
parent50aaebab9410ae7afd6875fb396bdc23f6e4c32f
re PR c++/89387 (ICE in maybe_generic_this_capture at gcc/cp/lambda.c:945 since r268851)

PR c++/89387
* lambda.c (maybe_generic_this_capture): Don't check
DECL_NONSTATIC_MEMBER_FUNCTION_P on USING_DECLs.

* g++.dg/cpp0x/lambda/lambda-89387.C: New test.

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