OSDN Git Service

* decl.c (finish_case_label): Do not check that we are within a
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Nov 2003 19:57:56 +0000 (19:57 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Nov 2003 19:57:56 +0000 (19:57 +0000)
commitc3fbce205360c2a5d502dd6cb40f552a4cd29df5
treeaa9b2c397865aa98457ff6c9f73d6eeff4d68475
parentf0c467daaf790c59979c5f05b903e67d60f20877
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73508 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c