Fix PR c++/70218 (illegal access to private field succeeds)
gcc/cp/ChangeLog: PR c++/70218 * parser.c (cp_parser_lambda_expression): Move call to pop_deferring_access_checks ahead of the call to cp_parser_end_tentative_firewall. gcc/testsuite/ChangeLog: PR c++/70218 * g++.dg/cpp0x/lambda/lambda-70218.C: New test. From-SVN: r234316
Showing
Please
register
or
sign in
to comment