aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2003-10-13 12:43:42 +0000
committerherbelin2003-10-13 12:43:42 +0000
commita0cd5003d9cdb8a2a060e47837a566348d215ac9 (patch)
tree034aee1b08db87591ce6d7b12314e2684fb70a11
parentf1a0e13b3b1dde9492e54c04e8dfc3ccd07ee6c2 (diff)
Bug introduit dans start_proof par le commit precedent
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4621 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--toplevel/command.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index fb95bdc345..df3dc78d5a 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -630,7 +630,7 @@ let start_proof_com sopt kind (bl,t) hook =
let id = match sopt with
| Some id ->
(* We check existence here: it's a bit late at Qed time *)
- if is_global id then
+ if Nametab.exists_cci (Lib.make_path id) or is_section_variable id then
errorlabstrm "start_proof" (pr_id id ++ str " already exists");
id
| None ->