]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/parser.c
decl.c (finish_case_label): Do not check that we are within a switch statement here.
authorMark Mitchell <mark@codesourcery.com>
Wed, 12 Nov 2003 19:57:56 +0000 (19:57 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 12 Nov 2003 19:57:56 +0000 (19:57 +0000)
commit0e59b3fb64d1bce60568a79e3ff37d5f61539a43
treeaa9b2c397865aa98457ff6c9f73d6eeff4d68475
parentd5123baefb715e5d861535910f3c82deb8675f22
decl.c (finish_case_label): Do not check that we are within a switch statement here.

* decl.c (finish_case_label): Do not check that we are within a
switch statement here.
* parser.c (struct cp_parser): Add in_iteration_statement_p and
in_switch_statement_p.
(cp_parser_new): Initialize them.
(cp_parser_labeled_statement): Check validity of case labels
here.
(cp_parser_selection_statement): Set in_switch_statement_p.
(cp_parser_iteration_statement): Set in_iteration_statement_p.
(cp_parser_jump_statement): Check validity of break/continue
statements here.

From-SVN: r73508
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c