diff options
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index 118db30..9beee28 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -444,6 +444,8 @@ do_case (start, end) { if (end) error ("case label within scope of cleanup or variable array"); + else if (! start) + error ("`default' label within scope of cleanup or variable array"); else cp_error ("case label `%E' within scope of cleanup or variable array", start); } |