From eb4484594fdd910acdc06149f9c112ab728977b4 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 2 May 1997 01:42:58 +0000 Subject: 91th Cygnus<->FSF quick merge From-SVN: r14007 --- gcc/cp/expr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cp/expr.c') 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); } -- cgit v1.1