aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 3894c7a..b1fd4f7 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -2433,18 +2433,6 @@ finish_case_label (tree low_value, tree high_value)
tree cond, r;
register struct cp_binding_level *p;
- if (! switch_stack)
- {
- if (high_value)
- error ("case label not within a switch statement");
- else if (low_value)
- error ("case label `%E' not within a switch statement",
- low_value);
- else
- error ("`default' label not within a switch statement");
- return NULL_TREE;
- }
-
if (processing_template_decl)
{
tree label;