Fix C++ side of PR c/70436 (missing -Wparentheses warnings)
authorPatrick Palka <ppalka@gcc.gnu.org>
Wed, 6 Apr 2016 23:10:14 +0000 (23:10 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Wed, 6 Apr 2016 23:10:14 +0000 (23:10 +0000)
commite292f64de0810c8efff20aef58bbb57c17541225
tree746779eeffa9deaffac5cdb423008dd0494556d3
parent6b37bdaff18303bdc1042d9b99f11f83ac836c13
Fix C++ side of PR c/70436 (missing -Wparentheses warnings)

gcc/cp/ChangeLog:

PR c/70436
* parser.c (cp_parser_iteration_statement): New parameter IF_P.
Pass it through to cp_parser_already_scoped_statement.
(cp_parser_already_scoped_statement): New parameter IF_P.  Pass
it through to cp_parser_statement.
(cp_parser_statement): Pass IF_P through to
cp_parser_iteration_statement.
(cp_parser_pragma): Adjust call to
cp_parser_iteration_statement.

gcc/testsuite/ChangeLog:

PR c/70436
* g++.dg/warn/Wparentheses-29.C: New test.

From-SVN: r234802
gcc/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wparentheses-29.C [new file with mode: 0644]