[Bug c/70436] [4.9/5/6 Regression] -Wparentheses missing ambiguous else warning
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 6 23:11:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70436
--- Comment #14 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Wed Apr 6 23:10:14 2016
New Revision: 234802
URL: https://gcc.gnu.org/viewcvs?rev=234802&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wparentheses-29.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list