diff options
author | Adam Butcher <adam@jessamine.co.uk> | 2017-01-27 07:59:06 +0000 |
---|---|---|
committer | Adam Butcher <abutcher@gcc.gnu.org> | 2017-01-27 07:59:06 +0000 |
commit | bb6a6ee9db925bea82bba47b1b3cdd3555fb539b (patch) | |
tree | 6d74a0c4c4c060c5f3cb24e32b23ffef3968df5b /gcc/tree-vrp.c | |
parent | 0fb9ec83c38887a5b1da7376873506ae59b2c60e (diff) | |
download | gcc-bb6a6ee9db925bea82bba47b1b3cdd3555fb539b.zip gcc-bb6a6ee9db925bea82bba47b1b3cdd3555fb539b.tar.gz gcc-bb6a6ee9db925bea82bba47b1b3cdd3555fb539b.tar.bz2 |
re PR c++/64382 (ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template)
Fix PR c++/64382
PR c++/64382
* cp/parser.c (parsing_default_capturing_generic_lambda_in_template):
New function.
* cp/cp-tree.h: Declare it.
* cp/semantics.c (finish_id_expression): Resolve names within a default
capturing generic lambda defined within a template prior to
instantiation to allow for captures to be added to the closure type.
PR c++/64382
* g++.dg/cpp1y/pr64382.C: New test.
From-SVN: r244962
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions