re PR c++/64382 (ICE due to use of `this` inside a lambda that captures…
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
Showing
gcc/testsuite/g++.dg/cpp1y/pr64382.C
0 → 100644
Please
register
or
sign in
to comment