]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
Fix PR c++/70218 (illegal access to private field succeeds)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 18 Mar 2016 01:23:26 +0000 (01:23 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 18 Mar 2016 01:23:26 +0000 (01:23 +0000)
commit753a8910a4c9021ff81e9892ac58c50c0fdb6d69
tree6c27e45dd0c7221674892f4c5dac59d16ea73e65
parent4a8e35b32ce7b8af8719e15ef26fbe2575d16610
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
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-70218.C [new file with mode: 0644]