re PR c++/65727 (Segfault With Decltype In Lambda Expression Used To Initialize Stati...
authorJason Merrill <jason@redhat.com>
Wed, 15 Apr 2015 21:17:03 +0000 (17:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 15 Apr 2015 21:17:03 +0000 (17:17 -0400)
commit5ce3039eb1e5771e01ee9513f0b7508a95f544ed
treeae9db838d14d43c0821e59dda18494dafae364c5
parentcf0ed95b57a87bd943bb093a52d19cc00bdede31
re PR c++/65727 (Segfault With Decltype In Lambda Expression Used To Initialize Static Class Member)

PR c++/65727
* lambda.c (lambda_expr_this_capture): In unevaluated context go
through the normal loop, just don't capture.
(maybe_resolve_dummy): Handle null return.

Co-Authored-By: Marek Polacek <polacek@redhat.com>
From-SVN: r222132
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-decltype2.C [new file with mode: 0644]