summaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>1997-05-02 01:42:58 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>1997-05-02 01:42:58 +0000
commitf85d646a3e067c12f99a5a79d5e17b0388ecd53f (patch)
treed15683fdd007eaa7a6e42cb25ad13d7a80886862 /gcc/cp/expr.c
parenta4e9e1fca80266d90b93e42c670a8922f7d9fd61 (diff)
downloadgcc-f85d646a3e067c12f99a5a79d5e17b0388ecd53f.tar.gz
91th Cygnus<->FSF quick merge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14007 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 118db30930d..9beee2823ff 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);
}